mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
loader.js: Don't load a redirect in col1, if col2 has similar content
fixes Icinga/icingadb-web#284
This commit is contained in:
parent
72e63dd0a1
commit
18188f7185
@ -643,7 +643,9 @@
|
|||||||
this.loadUrl(parts.shift(), $('#col2'));
|
this.loadUrl(parts.shift(), $('#col2'));
|
||||||
} else {
|
} else {
|
||||||
if ($target.attr('id') === 'col2') { // TODO: multicol
|
if ($target.attr('id') === 'col2') { // TODO: multicol
|
||||||
if ($('#col1').data('icingaUrl').split('?')[0] === url.split('?')[0]) {
|
if ($target.data('icingaUrl').split('?')[0] === url.split('?')[0]) {
|
||||||
|
// Don't do anything in this case
|
||||||
|
} else if ($('#col1').data('icingaUrl').split('?')[0] === url.split('?')[0]) {
|
||||||
icinga.ui.layout1col();
|
icinga.ui.layout1col();
|
||||||
$target = $('#col1');
|
$target = $('#col1');
|
||||||
delete(this.requests['col2']);
|
delete(this.requests['col2']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user