mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
Merge pull request #3174 from Icinga/fix/fullscreen-layout
Don't discard fullscreen when detecting the layout
This commit is contained in:
commit
83faa2671c
@ -34,7 +34,12 @@
|
|||||||
var matched;
|
var matched;
|
||||||
$.each(classList, function(index, item) {
|
$.each(classList, function(index, item) {
|
||||||
if (null !== (matched = item.match(/^([a-z]+)-layout$/))) {
|
if (null !== (matched = item.match(/^([a-z]+)-layout$/))) {
|
||||||
_this.currentLayout = matched[1];
|
var layout = matched[1];
|
||||||
|
if (layout !== 'fullscreen') {
|
||||||
|
_this.currentLayout = layout;
|
||||||
|
// Break loop
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user