]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fix saving URL with enter key
authorThomas Citharel <tcit@tcit.fr>
Tue, 7 Jul 2015 16:29:41 +0000 (18:29 +0200)
committerThomas Citharel <tcit@tcit.fr>
Tue, 7 Jul 2015 16:29:41 +0000 (18:29 +0200)
themes/_global/js/keyboard.js

index 4469248dc368ee2c66836241e4996f16afed2861..48f60a095ee2a62c0dc1c3d8486a266998d41539 100644 (file)
@@ -144,5 +144,7 @@ function goSelectPrev(selectedArticle,number) {
 }
 
 function enterArticle(selectedArticle) {
-  window.location = selectedArticle.find('a:first').attr('href');
+  if (!$("#bagit").hasClass("current")) {
+    window.location = selectedArticle.find('a:first').attr('href');
+  }
 }
\ No newline at end of file