mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
UI: Right column cleanup on layout switch
This commit is contained in:
parent
c4d570717b
commit
833bf69e6d
@ -98,12 +98,13 @@
|
|||||||
if (matched[1] === this.currentLayout &&
|
if (matched[1] === this.currentLayout &&
|
||||||
$('#layout').hasClass(layout)
|
$('#layout').hasClass(layout)
|
||||||
) {
|
) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
$('#layout').attr('class', layout);
|
$('#layout').removeClass(this.currentLayout + '-layout').addClass(layout);
|
||||||
this.currentLayout = matched[1];
|
this.currentLayout = matched[1];
|
||||||
|
if (this.currentLayout === 'poor' || this.currentLayout === 'minimal') {
|
||||||
|
this.icinga.events.layout1col();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user