diff options
| author | 2014-10-09 16:15:43 +0200 | |
|---|---|---|
| committer | 2014-10-09 16:15:43 +0200 | |
| commit | 52173d71215733b9b94c7e6ae02dc84151d94d0a (patch) | |
| tree | abfa449b0ac4d448a9bb0e91b79b4e23de1b0d54 /p | |
| parent | 444b1552364b39761c3278c7da5152fd3998f216 (diff) | |
| parent | caf98a6468dcea5ae8c38062e4eb527cb3667db9 (diff) | |
Merge branch 'hotfixes'
Diffstat (limited to 'p')
| -rw-r--r-- | p/scripts/main.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index f6d5d2907..00cd96fbe 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -33,7 +33,7 @@ function needsScroll($elem) { } function str2int(str) { - if (str == '') { + if (str == '' || str === undefined) { return 0; } return parseInt(str.replace(/\D/g, ''), 10) || 0; @@ -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 }); |
