summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-10 15:19:56 +0300
committerAndrew Dolgov <[email protected]>2018-12-10 15:19:56 +0300
commit109910424c2ed084d226980e0bdc60578697268e (patch)
tree3cb268a8fa4effc330b6ec96c98f2c1e4764b0bf /js
parentcc267217e10c7b3e430eed3c356e961a87171715 (diff)
renderAgain: restore marked/published flags
Diffstat (limited to 'js')
-rwxr-xr-xjs/Headlines.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 8f267ac6f..7564d48dd 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -242,6 +242,8 @@ define(["dojo/_base/declare"], function (declare) {
const id = row.getAttribute("data-article-id");
const selected = row.hasClassName("Selected");
const active = row.hasClassName("active");
+ const marked = row.hasClassName("marked");
+ const published = row.hasClassName("published");
if (this.headlines[id]) {
const new_row = this.render({}, this.headlines[id]);
@@ -259,6 +261,9 @@ define(["dojo/_base/declare"], function (declare) {
if (selected) this.select("all", id);
+ if (marked) new_row.addClassName("marked");
+ if (published) new_row.addClassName("published");
+
Article.unpack(new_row);
}