From 88a7130d79981f60337e2118ee8f604df5435659 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Apr 2021 19:49:51 +0300 Subject: fix for previous changeset that broke expanded mode --- js/Article.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/Article.js b/js/Article.js index 9a2c71529..be06e8f73 100644 --- a/js/Article.js +++ b/js/Article.js @@ -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,7 +414,9 @@ const Article = { App.findAll("div[id*=RROW][class*=active]").forEach((row) => { row.removeClassName("active"); - Article.pack(row); + + if (App.isCombinedMode() && !App.getInitParam("cdm_expanded")) + Article.pack(row); }); const row = App.byId(`RROW-${id}`); -- cgit v1.2.3