diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-07-07 18:29:41 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-07-07 18:29:41 +0200 |
commit | 48a59f05a613631409818cf63bd31b9f431723fd (patch) | |
tree | 48a59f111ebdc1428243d35a358d54589f75316e /themes | |
parent | 105ef359b7e7f147f9684f1695f3d9d2b962b5e0 (diff) | |
download | wallabag-48a59f05a613631409818cf63bd31b9f431723fd.tar.gz wallabag-48a59f05a613631409818cf63bd31b9f431723fd.tar.zst wallabag-48a59f05a613631409818cf63bd31b9f431723fd.zip |
fix saving URL with enter key
Diffstat (limited to 'themes')
-rw-r--r-- | themes/_global/js/keyboard.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/_global/js/keyboard.js b/themes/_global/js/keyboard.js index 4469248d..48f60a09 100644 --- a/themes/_global/js/keyboard.js +++ b/themes/_global/js/keyboard.js | |||
@@ -144,5 +144,7 @@ function goSelectPrev(selectedArticle,number) { | |||
144 | } | 144 | } |
145 | 145 | ||
146 | function enterArticle(selectedArticle) { | 146 | function enterArticle(selectedArticle) { |
147 | window.location = selectedArticle.find('a:first').attr('href'); | 147 | if (!$("#bagit").hasClass("current")) { |
148 | window.location = selectedArticle.find('a:first').attr('href'); | ||
149 | } | ||
148 | } \ No newline at end of file | 150 | } \ No newline at end of file |