summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-05-06 22:27:49 +0300
committerAndrew Dolgov <[email protected]>2021-05-06 22:27:49 +0300
commitd11718c89cbac6753a7ae494ee79653c4bf99e03 (patch)
tree62d7237691b1f642089eca6de66694dcd7ca0694 /js
parente8f78181f1d5a78fcfb58f0a43fb162504fa8e60 (diff)
fix combined/three panel transition to expandable mode
Diffstat (limited to 'js')
-rw-r--r--js/Article.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/js/Article.js b/js/Article.js
index be06e8f73..a3a75ba21 100644
--- a/js/Article.js
+++ b/js/Article.js
@@ -282,9 +282,13 @@ const Article = {
console.log("packing", row.id);
row.setAttribute("data-is-packed", "1");
- row.querySelector(".content-inner").innerHTML = `<div class="text-center text-muted">
- ${__("Loading, please wait...")}
- </div>`
+ const content_inner = row.querySelector(".content-inner");
+
+ // missing in unexpanded mode
+ if (content_inner)
+ content_inner.innerHTML = `<div class="text-center text-muted">
+ ${__("Loading, please wait...")}
+ </div>`
}
},
view: function (id, no_expand) {