mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 12:01:29 +00:00
renderAgain: restore marked/published flags
This commit is contained in:
@@ -242,6 +242,8 @@ define(["dojo/_base/declare"], function (declare) {
|
|||||||
const id = row.getAttribute("data-article-id");
|
const id = row.getAttribute("data-article-id");
|
||||||
const selected = row.hasClassName("Selected");
|
const selected = row.hasClassName("Selected");
|
||||||
const active = row.hasClassName("active");
|
const active = row.hasClassName("active");
|
||||||
|
const marked = row.hasClassName("marked");
|
||||||
|
const published = row.hasClassName("published");
|
||||||
|
|
||||||
if (this.headlines[id]) {
|
if (this.headlines[id]) {
|
||||||
const new_row = this.render({}, 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 (selected) this.select("all", id);
|
||||||
|
|
||||||
|
if (marked) new_row.addClassName("marked");
|
||||||
|
if (published) new_row.addClassName("published");
|
||||||
|
|
||||||
Article.unpack(new_row);
|
Article.unpack(new_row);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user