Skip to content

Commit

Permalink
js/loader.js: preserve scrolling position...
Browse files Browse the repository at this point in the history
...on autorefresh and reset it otherwise.

fixes #6285
fixes #6988
  • Loading branch information
Thomas-Gelf committed Sep 2, 2014
1 parent 3d352ba commit ef84780
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/js/icinga/loader.js
Expand Up @@ -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;
Expand Down

0 comments on commit ef84780

Please sign in to comment.