apply Has_Marked css class to feed tree elements with marked articles

This commit is contained in:
Andrew Dolgov 2020-01-24 14:35:10 +03:00
parent 2f6741e49a
commit 6f625aa8aa
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);