summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-04-22 19:49:51 +0300
committerAndrew Dolgov <[email protected]>2021-04-22 19:49:51 +0300
commit88a7130d79981f60337e2118ee8f604df5435659 (patch)
treea59010e309b0facc2a7ff0f1834bcda7f466921e /js
parente8e4fc641e3a583e6f81342904e5fb738d855aa6 (diff)
fix for previous changeset that broke expanded mode
Diffstat (limited to 'js')
-rw-r--r--js/Article.js6
1 files changed, 4 insertions, 2 deletions
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}`);