mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Apply change of layout immediately and use this state to check the checkbox
This commit is contained in:
+13
@@ -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
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user