Adjust scroll position on container after triggering the 'rendered' event
Prevent behaviors from altering the current scroll-position on page reload when refreshing or changing the focus. fixes #7269
This commit is contained in:
parent
c67e7c3ef0
commit
6124f984ee
|
@ -723,9 +723,6 @@
|
||||||
}
|
}
|
||||||
this.icinga.ui.assignUniqueContainerIds();
|
this.icinga.ui.assignUniqueContainerIds();
|
||||||
|
|
||||||
if (scrollPos !== false) {
|
|
||||||
$container.scrollTop(scrollPos);
|
|
||||||
}
|
|
||||||
if (origFocus) {
|
if (origFocus) {
|
||||||
$(origFocus).focus();
|
$(origFocus).focus();
|
||||||
}
|
}
|
||||||
|
@ -733,6 +730,9 @@
|
||||||
// TODO: this.icinga.events.refreshContainer(container);
|
// TODO: this.icinga.events.refreshContainer(container);
|
||||||
$container.trigger('rendered');
|
$container.trigger('rendered');
|
||||||
|
|
||||||
|
if (scrollPos !== false) {
|
||||||
|
$container.scrollTop(scrollPos);
|
||||||
|
}
|
||||||
var icinga = this.icinga;
|
var icinga = this.icinga;
|
||||||
//icinga.events.applyHandlers($container);
|
//icinga.events.applyHandlers($container);
|
||||||
icinga.ui.initializeControls($container);
|
icinga.ui.initializeControls($container);
|
||||||
|
|
Loading…
Reference in New Issue