mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:15:56 +00:00
pass DOMNodes instead of escaped html data to JS article rendered hooks (i think this makes much more sense)
This commit is contained in:
@@ -236,9 +236,8 @@ function render_article(article) {
|
|||||||
c.domNode.scrollTop = 0;
|
c.domNode.scrollTop = 0;
|
||||||
} catch (e) { };
|
} catch (e) { };
|
||||||
|
|
||||||
PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED, article);
|
|
||||||
|
|
||||||
c.attr('content', article);
|
c.attr('content', article);
|
||||||
|
PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED, c.domNode);
|
||||||
|
|
||||||
correctHeadlinesOffset(getActiveArticleId());
|
correctHeadlinesOffset(getActiveArticleId());
|
||||||
|
|
||||||
@@ -1231,10 +1230,11 @@ function unpackVisibleHeadlines() {
|
|||||||
var cencw = $("CENCW-" + child.id.replace("RROW-", ""));
|
var cencw = $("CENCW-" + child.id.replace("RROW-", ""));
|
||||||
|
|
||||||
if (cencw) {
|
if (cencw) {
|
||||||
PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED_CDM, child);
|
|
||||||
|
|
||||||
cencw.innerHTML = htmlspecialchars_decode(cencw.innerHTML);
|
cencw.innerHTML = htmlspecialchars_decode(cencw.innerHTML);
|
||||||
cencw.setAttribute('id', '');
|
cencw.setAttribute('id', '');
|
||||||
|
|
||||||
|
PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED_CDM, child);
|
||||||
|
|
||||||
Element.show(cencw);
|
Element.show(cencw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user