diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-08 22:10:40 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-08 22:10:40 +0200 |
commit | f8e9d8bdbcd1514bef078456a6235288800f9950 (patch) | |
tree | dfed2a0dd110c24af21073b04973f0bd39c0c96e /themes/default/js | |
parent | bf20b541ae2263d6cba95d01df7ea751615e012a (diff) | |
download | wallabag-f8e9d8bdbcd1514bef078456a6235288800f9950.tar.gz wallabag-f8e9d8bdbcd1514bef078456a6235288800f9950.tar.zst wallabag-f8e9d8bdbcd1514bef078456a6235288800f9950.zip |
[fix] Escap key displays save a link form #612
Diffstat (limited to 'themes/default/js')
-rwxr-xr-x | themes/default/js/saveLink.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/js/saveLink.js b/themes/default/js/saveLink.js index ccc00d1e..bee453c0 100755 --- a/themes/default/js/saveLink.js +++ b/themes/default/js/saveLink.js | |||
@@ -75,7 +75,7 @@ $.fn.ready(function() { | |||
75 | ========================================================================== */ | 75 | ========================================================================== */ |
76 | 76 | ||
77 | $(window).keydown(function(e){ | 77 | $(window).keydown(function(e){ |
78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || e.keyCode == 27 ) { | 78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || (e.keyCode == 27 && $bagitForm.is(':visible') ) ) { |
79 | $bagit.removeClass("current"); | 79 | $bagit.removeClass("current"); |
80 | $("#bagit-arrow").removeClass("arrow-down"); | 80 | $("#bagit-arrow").removeClass("arrow-down"); |
81 | toggleSaveLinkForm(); | 81 | toggleSaveLinkForm(); |