mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
ooops, shouldn't have deleted that
This commit is contained in:
parent
4e6a2a1fa4
commit
5828ba5b75
1 changed files with 7 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue