aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-09-27 08:20:13 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-09-27 08:22:41 -0400
commit59c17a3c6c26d6b487e2ec5e02caa3fb26f9ff9c (patch)
tree4cb7c5b365a0188110d2721ecc355d27542d38bb /p/scripts
parentc14162221365077bcaeecde7127806190490dd58 (diff)
Fix read all shortcut
Before, the read all shortcut raised a javascript exception when we use the confirmation option. The confirmation was not even displayed. The code was failling since there was a missing variable. Now, the shortcut ask for confirmation when the option is selected in the reading configuration page. The definition of the shortcut was buggy since the confirmation was handled properly in an other location. I simplified the code by removing the confirmation code in the shortcut.
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index f6d5d2907..8a45ae896 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -538,14 +538,7 @@ function init_shortcuts() {
});
shortcut.add("shift+" + shortcuts.mark_read, function () {
// on marque tout comme lu
- var btn = $(".nav_menu .read_all");
- if (btn.hasClass('confirm')) {
- if (confirm(str_confirmation)) {
- btn.click();
- }
- } else {
- btn.click();
- }
+ $(".nav_menu .read_all").click();
}, {
'disable_in_input': true
});