diff options
| author | 2014-07-31 17:21:09 +0200 | |
|---|---|---|
| committer | 2014-07-31 17:21:09 +0200 | |
| commit | aafcd3a879225414ca7fb5a9b74ba06e5ece8c12 (patch) | |
| tree | a263cd8d3378b31539ad2138771d82829f2e76f3 /p/scripts | |
| parent | 3ffa2e301850154c6d7959f70dbbd37dc7fbffc9 (diff) | |
| parent | 4a0e5ac037dc3c8fd16ca086924087f8ccaed46b (diff) | |
Merge branch 'dev' of github.com:marienfressinaud/freshrss into dev
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index adbd5eab8..5d7d60a35 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -69,6 +69,10 @@ function incUnreadsFeed(article, feed_id, nb) { feed_priority = elem ? str2int(elem.getAttribute('data-priority')) : 0; if (elem) { elem.setAttribute('data-unread', numberFormat(feed_unreads + nb)); + elem = $(elem).closest('li').get(0); + if (elem) { + elem.setAttribute('data-unread', feed_unreads + nb); + } } //Update unread: category @@ -76,6 +80,10 @@ function incUnreadsFeed(article, feed_id, nb) { feed_unreads = elem ? str2int(elem.getAttribute('data-unread')) : 0; if (elem) { elem.setAttribute('data-unread', numberFormat(feed_unreads + nb)); + elem = $(elem).closest('li').get(0); + if (elem) { + elem.setAttribute('data-unread', feed_unreads + nb); + } } //Update unread: all |
