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

WIP reshuffling of JS global context into separate logical objects

This commit is contained in:
Andrew Dolgov
2018-12-01 17:05:28 +03:00
parent 78780c9c08
commit 049a37aa0e
15 changed files with 1151 additions and 1269 deletions

View File

@@ -9,7 +9,7 @@ function embedOriginalArticle(id) {
let c = false;
if (isCombinedMode()) {
if (App.isCombinedMode()) {
c = $$("div#RROW-" + id + " div[class=content-inner]")[0];
} else if (id == getActiveArticleId()) {
c = $$(".post .content")[0];
@@ -22,7 +22,7 @@ function embedOriginalArticle(id) {
Element.show(c);
c.parentNode.removeChild(iframe);
if (isCombinedMode()) {
if (App.isCombinedMode()) {
cdmScrollToArticleId(id, true);
}
@@ -47,7 +47,7 @@ function embedOriginalArticle(id) {
Element.hide(c);
c.parentNode.insertBefore(iframe, c);
if (isCombinedMode()) {
if (App.isCombinedMode()) {
cdmScrollToArticleId(id, true);
}
}