scroll headlines and content container to top on update
This commit is contained in:
parent
8491624390
commit
44cc6f204f
|
@ -19,6 +19,9 @@ function headlines_callback() {
|
||||||
if (xmlhttp.readyState == 4) {
|
if (xmlhttp.readyState == 4) {
|
||||||
debug("headlines_callback");
|
debug("headlines_callback");
|
||||||
var f = document.getElementById("headlines-frame");
|
var f = document.getElementById("headlines-frame");
|
||||||
|
try {
|
||||||
|
f.scrollTop = 0;
|
||||||
|
} catch (e) { };
|
||||||
f.innerHTML = xmlhttp.responseText;
|
f.innerHTML = xmlhttp.responseText;
|
||||||
update_all_counters();
|
update_all_counters();
|
||||||
if (typeof correctPNG != 'undefined') {
|
if (typeof correctPNG != 'undefined') {
|
||||||
|
@ -32,6 +35,9 @@ function article_callback() {
|
||||||
if (xmlhttp.readyState == 4) {
|
if (xmlhttp.readyState == 4) {
|
||||||
debug("article_callback");
|
debug("article_callback");
|
||||||
var f = document.getElementById("content-frame");
|
var f = document.getElementById("content-frame");
|
||||||
|
try {
|
||||||
|
f.scrollTop = 0;
|
||||||
|
} catch (e) { };
|
||||||
f.innerHTML = xmlhttp.responseText;
|
f.innerHTML = xmlhttp.responseText;
|
||||||
if (typeof correctPNG != 'undefined') {
|
if (typeof correctPNG != 'undefined') {
|
||||||
correctPNG();
|
correctPNG();
|
||||||
|
|
Loading…
Reference in New Issue