mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
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 self = this;
|
||||||
var containerId = $container.attr('id');
|
var containerId = $container.attr('id');
|
||||||
if (typeof containerId !== 'undefined') {
|
if (typeof containerId !== 'undefined') {
|
||||||
|
if (autorefresh) {
|
||||||
scrollPos = $container.scrollTop();
|
scrollPos = $container.scrollTop();
|
||||||
|
} else {
|
||||||
|
scrollPos = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var origFocus = document.activeElement;
|
var origFocus = document.activeElement;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user