mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
Close modals on escape
Closes #3016 - Disconnect modal outlet on escape key in closePopups action handler
This commit is contained in:
parent
1fe9238dd6
commit
2242d8b564
@ -8,8 +8,10 @@ var ApplicationRoute = Ember.Route.extend(ShortcutsRoute, {
|
||||
closePopups: function () {
|
||||
this.get('popover').closePopovers();
|
||||
this.get('notifications').closeAll();
|
||||
// @todo close modals
|
||||
|
||||
this.send('closeModal');
|
||||
},
|
||||
|
||||
signedIn: function (user) {
|
||||
// Update the user on all routes and controllers
|
||||
this.container.unregister('user:current');
|
||||
|
Loading…
Reference in New Issue
Block a user