mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 04:29:29 +08:00
ooops, shouldn't have deleted that
This commit is contained in:
parent
4e6a2a1fa4
commit
5828ba5b75
|
@ -12,5 +12,12 @@ export default Ember.View.extend({
|
||||||
// the backdrop and makes it unclickable.
|
// the backdrop and makes it unclickable.
|
||||||
$('.modal-header a.close').click();
|
$('.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 New Issue
Block a user