loader.js: Return in onComplete upon handled redirects

Got changed with f12a5741b8. Triggering
rendered events for stuff that's never displayed doesn't seem right.
This commit is contained in:
Johannes Meyer 2019-04-30 09:23:59 +02:00
parent 64b97ff150
commit 43c87d2388
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) {