Merge pull request #3174 from Icinga/fix/fullscreen-layout

Don't discard fullscreen when detecting the layout
This commit is contained in:
lippserd 2017-12-15 10:13:05 +01:00 committed by GitHub
commit 83faa2671c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}
}
});
};