diff options
| author | 2014-09-16 14:19:55 +0200 | |
|---|---|---|
| committer | 2014-09-16 14:19:55 +0200 | |
| commit | 497d3564c8f4638107bfcae6a492bd51e9012b9d (patch) | |
| tree | 4da597ccef208cd7b26d3c473849153f745fba33 /p/scripts | |
| parent | c6dbe9def83153c7c274ef0fa47fe27ef592d3ab (diff) | |
Fix bug with shortcut "mark all as read"
See https://github.com/marienfressinaud/FreshRSS/issues/599
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index d68d76e3b..07af35a5b 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -533,13 +533,13 @@ function init_shortcuts() { }); shortcut.add("shift+" + shortcuts.mark_read, function () { // on marque tout comme lu - var url = $(".nav_menu a.read_all").attr("href"); - if ($(".nav_menu a.read_all").hasClass('confirm')) { + var btn = $(".nav_menu .read_all"); + if (btn.hasClass('confirm')) { if (confirm(str_confirmation)) { - redirect(url, false); + btn.click(); } } else { - redirect(url, false); + btn.click(); } }, { 'disable_in_input': true |
