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:
Matthias Jentsch 2014-10-14 15:50:15 +02:00
parent c67e7c3ef0
commit 6124f984ee
1 changed files with 3 additions and 3 deletions

View File

@ -723,9 +723,6 @@
}
this.icinga.ui.assignUniqueContainerIds();
if (scrollPos !== false) {
$container.scrollTop(scrollPos);
}
if (origFocus) {
$(origFocus).focus();
}
@ -733,6 +730,9 @@
// TODO: this.icinga.events.refreshContainer(container);
$container.trigger('rendered');
if (scrollPos !== false) {
$container.scrollTop(scrollPos);
}
var icinga = this.icinga;
//icinga.events.applyHandlers($container);
icinga.ui.initializeControls($container);