Apply change of layout immediately and use this state to check the checkbox

This commit is contained in:
DL6ER
2016-12-13 17:16:29 +01:00
parent 3befb07242
commit ea1645f562
2 changed files with 14 additions and 15 deletions
+13
View File
@@ -59,6 +59,19 @@
{
$boxedlayout = true;
}
// Override layout setting if layout is changed via Settings page3
if(isset($_POST["field"]))
{
if($_POST["field"] === "webUI" && isset($_POST["boxedlayout"]))
{
$boxedlayout = true;
}
elseif($_POST["field"] === "webUI" && !isset($_POST["boxedlayout"]))
{
$boxedlayout = false;
}
}
?>
<!DOCTYPE html>
+1 -15
View File
@@ -364,21 +364,7 @@
{
$temperatureunit = "C";
}
if(isset($setupVars['WEBUILAYOUT']))
{
if($setupVars['WEBUILAYOUT'] === "boxed")
{
$boxedlayout = true;
}
else
{
$boxedlayout = false;
}
}
else
{
$boxedlayout = true;
}
// Use $boxedlayout value determined in header.php
?>
<div class="box box-success">
<div class="box-header with-border">