summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-01-24 14:35:10 +0300
committerAndrew Dolgov <[email protected]>2020-01-24 14:35:10 +0300
commit6f625aa8aa8418f336d7a9af8bd0c4fd38f36256 (patch)
tree6457be06ebf82eb1f7f3f00f94c6d369b0c37c6f /js
parent2f6741e49ac27578f01c17386aec25316abfdb3d (diff)
apply Has_Marked css class to feed tree elements with marked articles
Diffstat (limited to 'js')
-rwxr-xr-xjs/FeedTree.js1
-rw-r--r--js/Feeds.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/js/FeedTree.js b/js/FeedTree.js
index 1dcbae3f9..5c038d4b7 100755
--- a/js/FeedTree.js
+++ b/js/FeedTree.js
@@ -191,6 +191,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
"dijitTreeRow Error";
if (item.unread > 0) rc += " Unread";
+ if (item.markedcounter > 0) rc += " Has_Marked";
if (item.updates_disabled > 0) rc += " UpdatesDisabled";
return rc;
diff --git a/js/Feeds.js b/js/Feeds.js
index 42ab6fe7e..ae9352064 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -58,7 +58,6 @@ define(["dojo/_base/declare"], function (declare) {
const error = elems[l].error;
const has_img = elems[l].has_img;
const updated = elems[l].updated;
- const auxctr = parseInt(elems[l].auxcounter);
if (id == "global-unread") {
App.global_unread = ctr;
@@ -76,7 +75,8 @@ define(["dojo/_base/declare"], function (declare) {
}*/
this.setUnread(id, (kind == "cat"), ctr);
- this.setValue(id, (kind == "cat"), 'auxcounter', auxctr);
+ this.setValue(id, (kind == "cat"), 'auxcounter', parseInt(elems[l].auxcounter));
+ this.setValue(id, (kind == "cat"), 'markedcounter', parseInt(elems[l].markedcounter));
if (kind != "cat") {
this.setValue(id, false, 'error', error);