aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/js
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-04-08 22:10:40 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-04-08 22:10:40 +0200
commitf8e9d8bdbcd1514bef078456a6235288800f9950 (patch)
treedfed2a0dd110c24af21073b04973f0bd39c0c96e /themes/default/js
parentbf20b541ae2263d6cba95d01df7ea751615e012a (diff)
downloadwallabag-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-xthemes/default/js/saveLink.js2
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();