mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
js/loader: support multi-container redirection
Redirections to #!-separated URLs (multiple containers) should also work when not re-rendering the whole layout.
This commit is contained in:
parent
6298d303c4
commit
95f9bebdc5
@ -269,6 +269,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (redirect.match(/#!/)) {
|
||||||
|
var parts = redirect.split(/#!/);
|
||||||
|
icinga.ui.layout2col();
|
||||||
|
this.loadUrl(parts.shift(), $('#col1'));
|
||||||
|
this.loadUrl(parts.shift(), $('#col2'));
|
||||||
|
} else {
|
||||||
|
|
||||||
if (req.$target.attr('id') === 'col2') { // TODO: multicol
|
if (req.$target.attr('id') === 'col2') { // TODO: multicol
|
||||||
if ($('#col1').data('icingaUrl') === redirect) {
|
if ($('#col1').data('icingaUrl') === redirect) {
|
||||||
icinga.ui.layout1col();
|
icinga.ui.layout1col();
|
||||||
@ -279,6 +287,7 @@
|
|||||||
|
|
||||||
this.loadUrl(redirect, req.$target);
|
this.loadUrl(redirect, req.$target);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user