ooops, shouldn't have deleted that

This commit is contained in:
Régis Hanol 2015-04-03 18:45:03 +02:00
parent 4e6a2a1fa4
commit 5828ba5b75

View file

@ -12,5 +12,12 @@ export default Ember.View.extend({
// the backdrop and makes it unclickable.
$('.modal-header a.close').click();
}
},
keyDown(e) {
// Delegate click to modal close when pressing ESC
if (e.which === 27) {
Em.run.next(() => $('.modal-header a.close').click());
}
}
});