]> git.wh0rd.org Git - tt-rss.git/commitdiff
pass DOMNodes instead of escaped html data to JS article rendered hooks (i think...
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 31 Jul 2015 10:42:05 +0000 (13:42 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 31 Jul 2015 10:42:05 +0000 (13:42 +0300)
js/viewfeed.js

index d39416632f1a4499a061c0b6ea1561307d61909a..b5484b83a44578e31a7fc59dd0ac5dfc0f2a9012 100644 (file)
@@ -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);
                                        }
                                }