diff options
author | Andrew Dolgov <[email protected]> | 2018-12-10 15:19:56 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-10 15:19:56 +0300 |
commit | 109910424c2ed084d226980e0bdc60578697268e (patch) | |
tree | 3cb268a8fa4effc330b6ec96c98f2c1e4764b0bf /js/Headlines.js | |
parent | cc267217e10c7b3e430eed3c356e961a87171715 (diff) |
renderAgain: restore marked/published flags
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 5 |
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); } |