summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-10-10 04:46:17 +0100
committerAndrew Dolgov <[email protected]>2006-10-10 04:46:17 +0100
commit44cc6f204f526c02874f0b5e133eab0b4c57cf7e (patch)
tree076f5f061f3a79bf3b5996a2e2470b9650549d6f /viewfeed.js
parent8491624390e250fc5911186202968ad87c4bcbad (diff)
scroll headlines and content container to top on update
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js
index d1aa349a6..16ff989c9 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -19,6 +19,9 @@ function headlines_callback() {
if (xmlhttp.readyState == 4) {
debug("headlines_callback");
var f = document.getElementById("headlines-frame");
+ try {
+ f.scrollTop = 0;
+ } catch (e) { };
f.innerHTML = xmlhttp.responseText;
update_all_counters();
if (typeof correctPNG != 'undefined') {
@@ -32,6 +35,9 @@ function article_callback() {
if (xmlhttp.readyState == 4) {
debug("article_callback");
var f = document.getElementById("content-frame");
+ try {
+ f.scrollTop = 0;
+ } catch (e) { };
f.innerHTML = xmlhttp.responseText;
if (typeof correctPNG != 'undefined') {
correctPNG();