diff options
| author | 2016-08-02 00:42:07 +0200 | |
|---|---|---|
| committer | 2016-08-02 00:42:07 +0200 | |
| commit | 32b6ecc3afdc0cac3345ff89ee42f88c95c1775a (patch) | |
| tree | d4449ed046c40e6d9822e6edd0b6054422b090c1 /p/scripts | |
| parent | 75d2fa3fd325f98a98304e7b1e1bdb56bf0f2af7 (diff) | |
JS unused variables, syntax
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 69d0e33da..01c8c9cf5 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -125,9 +125,6 @@ function mark_read(active, only_not_read) { return false; } - var feed_url = active.find(".website>a").attr("href"), - feed_id = feed_url.substr(feed_url.lastIndexOf('f_')); - if (pending_entries[active.attr('id')]) { return false; } @@ -149,6 +146,9 @@ function mark_read(active, only_not_read) { } $r.find('.icon').replaceWith(data.icon); + var feed_url = active.find(".website>a").attr("href"), + feed_id = feed_url.substr(feed_url.lastIndexOf('f_')); + incUnreadsFeed(active, feed_id, inc); faviconNbUnread(); @@ -169,9 +169,6 @@ function mark_favorite(active) { return false; } - var feed_url = active.find(".website>a").attr("href"), - feed_id = feed_url.substr(feed_url.lastIndexOf('f_')); - if (pending_entries[active.attr('id')]) { return false; } @@ -901,7 +898,7 @@ function notifs_html5_show(nb) { notification.onclick = function() { window.location.reload(); - } + }; if (context['html5_notif_timeout'] !== 0) { setTimeout(function() { |
