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:
Johannes Meyer 2015-05-22 16:54:59 +02:00
parent e5819ef1b2
commit 88f5bb8368
1 changed files with 1 additions and 1 deletions

View File

@ -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']);