render_article: fix resetting scroll on article change
This commit is contained in:
parent
fe5bfa0042
commit
e5ebee0941
|
@ -258,6 +258,10 @@ function render_article(article) {
|
||||||
|
|
||||||
var fi = document.getElementById("content-insert");
|
var fi = document.getElementById("content-insert");
|
||||||
|
|
||||||
|
try {
|
||||||
|
fi.scrollTop = 0;
|
||||||
|
} catch (e) { };
|
||||||
|
|
||||||
fi.innerHTML = article;
|
fi.innerHTML = article;
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue