From 0feb6da647a9b6960f4499d9e65c010f8531c3b1 Mon Sep 17 00:00:00 2001 From: Jacob Gable Date: Mon, 23 Jun 2014 21:52:38 -0500 Subject: [PATCH] Close modals on escape Closes #3016 - Disconnect modal outlet on escape key in closePopups action handler --- core/client/routes/application.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/client/routes/application.js b/core/client/routes/application.js index 9f528de51b..0d45d3d63b 100644 --- a/core/client/routes/application.js +++ b/core/client/routes/application.js @@ -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');