mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Don't take fullscreen into account when detecting the layout
The fullscreen-layout class is just a layout modifier.
This commit is contained in:
parent
890013c639
commit
e77c3c8169
@ -34,7 +34,12 @@
|
||||
var matched;
|
||||
$.each(classList, function(index, item) {
|
||||
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