renderAgain: restore marked/published flags

This commit is contained in:
Andrew Dolgov 2018-12-10 15:19:56 +03:00
parent cc267217e1
commit 109910424c
1 changed files with 5 additions and 0 deletions

View File

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