mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
js: Relax check whether to switch to single column layout upon redirect
This fixes the problem when redirecting from a form using the same route as in the leftmost column but with a different querystring, that one gets the same route shown twice.
This commit is contained in:
parent
e5819ef1b2
commit
88f5bb8368
@ -310,7 +310,7 @@
|
|||||||
} else {
|
} 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').split('?')[0] === redirect.split('?')[0]) {
|
||||||
icinga.ui.layout1col();
|
icinga.ui.layout1col();
|
||||||
req.$target = $('#col1');
|
req.$target = $('#col1');
|
||||||
delete(this.requests['col2']);
|
delete(this.requests['col2']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user