render_article: fix resetting scroll on article change

This commit is contained in:
Andrew Dolgov 2008-07-30 04:27:25 +01:00
parent fe5bfa0042
commit e5ebee0941
1 changed files with 4 additions and 0 deletions

View 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) {