Merge pull request #3518 from Icinga/fix/anchor-navigation-not-working-3492

loader.js: Make anchor navigation working again
This commit is contained in:
Eric Lippmann 2018-07-16 10:00:35 +02:00 committed by GitHub
commit 84e0c0c4fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@
oldNotifications.appendTo($('#notifications'));
}
if (url.match(/#/)) {
this.icinga.ui.focusElement(url.split(/#/)[1], req.$target);
setTimeout(this.icinga.ui.focusElement, 0, url.split(/#/)[1], req.$target);
}
if (newBody) {
this.icinga.ui.fixDebugVisibility().triggerWindowResize();