diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-05-27 02:48:15 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-05-27 02:48:15 +0200 |
commit | 42f6dc686f313ba294e3cbcfb0ebde50678580fe (patch) | |
tree | dc14152cc8c98895f800c84cd2737fe6a5b22b7f /client/lib/popup.js | |
parent | 40c2411f2a1ce0bbd177f377828f9d6700112b06 (diff) | |
download | wekan-42f6dc686f313ba294e3cbcfb0ebde50678580fe.tar.gz wekan-42f6dc686f313ba294e3cbcfb0ebde50678580fe.tar.bz2 wekan-42f6dc686f313ba294e3cbcfb0ebde50678580fe.zip |
Prioritize escape actions with a label hierarchy instead of an integer
Diffstat (limited to 'client/lib/popup.js')
-rw-r--r-- | client/lib/popup.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/lib/popup.js b/client/lib/popup.js index 70f2660f..6298ba81 100644 --- a/client/lib/popup.js +++ b/client/lib/popup.js @@ -204,4 +204,7 @@ $(document).on('click', function(evt) { // Press escape to close the popup. var bindPopup = function(f) { return _.bind(f, Popup); }; -EscapeActions.register(20, bindPopup(Popup.isOpen), bindPopup(Popup.close)); +EscapeActions.register('popup', + bindPopup(Popup.isOpen), + bindPopup(Popup.close) +); |