js/loader.js: preserve scrolling position...
...on autorefresh and reset it otherwise. fixes #6285 fixes #6988
This commit is contained in:
parent
3d352ba446
commit
ef847801f2
|
@ -665,7 +665,11 @@
|
|||
var self = this;
|
||||
var containerId = $container.attr('id');
|
||||
if (typeof containerId !== 'undefined') {
|
||||
scrollPos = $container.scrollTop();
|
||||
if (autorefresh) {
|
||||
scrollPos = $container.scrollTop();
|
||||
} else {
|
||||
scrollPos = 0;
|
||||
}
|
||||
}
|
||||
|
||||
var origFocus = document.activeElement;
|
||||
|
|
Loading…
Reference in New Issue