]> git.wh0rd.org Git - tt-rss.git/commitdiff
render_article: fix resetting scroll on article change
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 Jul 2008 03:27:25 +0000 (04:27 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 Jul 2008 03:27:25 +0000 (04:27 +0100)
viewfeed.js

index ae9e443e2c99503ae04219dc08d50b437730c03a..4ee06e4610dba045b95d5fa5c3897053ef824d7d 100644 (file)
@@ -258,6 +258,10 @@ function render_article(article) {
 
                var fi = document.getElementById("content-insert");
 
+               try {
+                       fi.scrollTop = 0;
+               } catch (e) { };
+
                fi.innerHTML = article;
 
        } catch (e) {