fix for previous changeset that broke expanded mode

This commit is contained in:
Andrew Dolgov 2021-04-22 19:49:51 +03:00
parent e8e4fc641e
commit 88a7130d79
1 changed files with 4 additions and 2 deletions

View File

@ -278,7 +278,7 @@ const Article = {
}
},
pack: function(row) {
if (row.getAttribute("data-is-packed") != "1" && row.hasClassName("cdm")) {
if (row.getAttribute("data-is-packed") != "1") {
console.log("packing", row.id);
row.setAttribute("data-is-packed", "1");
@ -414,6 +414,8 @@ const Article = {
App.findAll("div[id*=RROW][class*=active]").forEach((row) => {
row.removeClassName("active");
if (App.isCombinedMode() && !App.getInitParam("cdm_expanded"))
Article.pack(row);
});