Merge pull request #3766 from Icinga/fix/dont-trigger-rendered-event-for-redirects

loader.js: Return in onComplete upon handled redirects
This commit is contained in:
Johannes Meyer 2019-05-23 09:08:23 +02:00 committed by GitHub
commit 3b82fffca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -670,7 +670,9 @@
delete this.requests[req.$target.attr('id')];
this.icinga.ui.fadeNotificationsAway();
this.processRedirectHeader(req);
if (this.processRedirectHeader(req)) {
return;
}
if (typeof req.loadNext !== 'undefined' && req.loadNext.length) {
if ($('#col2').length) {