From: Andrew Dolgov Date: Tue, 16 Nov 2010 16:15:04 +0000 (+0300) Subject: render_article: properly set headlines offset X-Git-Tag: 1.5.0~185 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c559efcf3b61181ca8bbfbd2146ce559d9ed182d;p=tt-rss.git render_article: properly set headlines offset --- diff --git a/viewfeed.js b/viewfeed.js index 5a8e929a..bacd8301 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -202,23 +202,18 @@ function headlines_callback2(transport, feed_cur_page) { function render_article(article) { try { - var f = $("content-frame"); - try { - f.scrollTop = 0; - } catch (e) { }; - dijit.byId("headlines-wrap-inner").addChild( dijit.byId("content-insert")); - var fi = $("content-insert"); + var c = $("content-insert"); try { - fi.scrollTop = 0; + c.scrollTop = 0; } catch (e) { }; - fi.innerHTML = article; - -// article.evalScripts(); + c.innerHTML = article; + + correctHeadlinesOffset(getActiveArticleId()); } catch (e) { exception_error("render_article", e);