summaryrefslogtreecommitdiff
path: root/js/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-31 13:42:05 +0300
committerAndrew Dolgov <[email protected]>2015-07-31 13:42:05 +0300
commitd8e8e24e34463bd5b7f0f76ca290a3a1e4a5f2c7 (patch)
treeae696825c04d097083f99bd85dca0efd1c46f829 /js/viewfeed.js
parente053fd8d6bd02ea1943b61f3ace5396845c2d1db (diff)
pass DOMNodes instead of escaped html data to JS article rendered hooks (i think this makes much more sense)
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r--js/viewfeed.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index d39416632..b5484b83a 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -236,9 +236,8 @@ function render_article(article) {
c.domNode.scrollTop = 0;
} catch (e) { };
- PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED, article);
-
c.attr('content', article);
+ PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED, c.domNode);
correctHeadlinesOffset(getActiveArticleId());
@@ -1231,10 +1230,11 @@ function unpackVisibleHeadlines() {
var cencw = $("CENCW-" + child.id.replace("RROW-", ""));
if (cencw) {
- PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED_CDM, child);
-
cencw.innerHTML = htmlspecialchars_decode(cencw.innerHTML);
cencw.setAttribute('id', '');
+
+ PluginHost.run(PluginHost.HOOK_ARTICLE_RENDERED_CDM, child);
+
Element.show(cencw);
}
}