UI: Right column cleanup on layout switch

This commit is contained in:
Thomas Gelf 2014-03-06 15:06:58 +00:00
parent c4d570717b
commit 833bf69e6d
1 changed files with 4 additions and 3 deletions

View File

@ -98,12 +98,13 @@
if (matched[1] === this.currentLayout &&
$('#layout').hasClass(layout)
) {
return false;
} else {
$('#layout').attr('class', layout);
$('#layout').removeClass(this.currentLayout + '-layout').addClass(layout);
this.currentLayout = matched[1];
if (this.currentLayout === 'poor' || this.currentLayout === 'minimal') {
this.icinga.events.layout1col();
}
return true;
}
}