diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-08 22:11:17 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-04-08 22:11:17 +0200 |
commit | b96b075b550610275045cce3fd1d36fe67689630 (patch) | |
tree | dfed2a0dd110c24af21073b04973f0bd39c0c96e | |
parent | bf20b541ae2263d6cba95d01df7ea751615e012a (diff) | |
parent | f8e9d8bdbcd1514bef078456a6235288800f9950 (diff) | |
download | wallabag-b96b075b550610275045cce3fd1d36fe67689630.tar.gz wallabag-b96b075b550610275045cce3fd1d36fe67689630.tar.zst wallabag-b96b075b550610275045cce3fd1d36fe67689630.zip |
Merge pull request #622 from wallabag/fix-612
[fix] Escap key displays save a link form #612
-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(); |