1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 21:25:55 +00:00

add a hack to prevent loading of stuff for hidden content in unexpanded combined mode (refs #602)

This commit is contained in:
Andrew Dolgov
2013-03-20 13:17:48 +04:00
parent 81153e6b8b
commit f0540b598a
4 changed files with 85 additions and 14 deletions

View File

@@ -1365,13 +1365,21 @@ function cdmExpandArticle(id) {
}
setActiveArticleId(id);
cdmScrollToArticleId(id, true);
elem = $("CICD-" + id);
var collapse = $$("div#RROW-" + id +
" span[class='collapseBtn']")[0];
var cencw = $("CENCW-" + id);
if (!Element.visible(elem)) {
if (cencw) {
cencw.innerHTML = htmlspecialchars_decode(cencw.innerHTML);
cencw.setAttribute('id', '');
}
Element.show(elem);
Element.hide("CEXC-" + id);
Element.show(collapse);