Fix logout loop (testing)

If this commit breaks anyhting, feel free to revert it.
This commit is contained in:
Eric Lippmann 2015-10-01 10:30:18 +02:00
parent 5b71d0b834
commit 5f7f0a9e89
1 changed files with 3 additions and 2 deletions

View File

@ -359,7 +359,7 @@
url = parts.shift();
var redirectionUrl = this.addUrlFlag(url, 'renderLayout');
var r = this.loadUrl(redirectionUrl, $('#layout'));
r.url = url;
r.addToHistory = false;
if (parts.length) {
r.loadNext = parts;
} else if (!! document.location.hash) {
@ -620,7 +620,8 @@
if (typeof req.loadNext !== 'undefined' && req.loadNext.length) {
if ($('#col2').length) {
this.loadUrl(req.loadNext[0], $('#col2'));
var r = this.loadUrl(req.loadNext[0], $('#col2'));
r.addToHistory = req.addToHistory;
this.icinga.ui.layout2col();
} else {
this.icinga.logger.error('Failed to load URL for #col2', req.loadNext);