From e77c3c81696bec8e93d21834ba5850574b818b80 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 29 Nov 2017 15:06:27 +0100 Subject: [PATCH] Don't take fullscreen into account when detecting the layout The fullscreen-layout class is just a layout modifier. --- public/js/icinga/ui.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js index 1c98d8f4e..31195351e 100644 --- a/public/js/icinga/ui.js +++ b/public/js/icinga/ui.js @@ -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; + } } }); };