mirror of
https://github.com/DigitalDevices/octonet.git
synced 2023-10-10 13:36:52 +02:00
System settings page fixes
1. System.html Don't submit when nothing has changed. 2. sync the file system after writing system settings.
This commit is contained in:
parent
b6f4ff3206
commit
03a15dd9ee
@ -106,8 +106,12 @@ function SaveSettings()
|
|||||||
param += "strict=" + (NewSettings.strictEnabled?"1":"0");
|
param += "strict=" + (NewSettings.strictEnabled?"1":"0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.getElementById("SetButton").disabled = true;
|
||||||
|
if( param != "" )
|
||||||
|
{
|
||||||
location.replace('/systemsettings.lua?'+param);
|
location.replace('/systemsettings.lua?'+param);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function ClearSettings()
|
function ClearSettings()
|
||||||
|
@ -165,6 +165,7 @@ if query ~= "" then
|
|||||||
if name == "strict" then restart = 1 end
|
if name == "strict" then restart = 1 end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
os.execute("/bin/sync >/dev/null 2>&1");
|
||||||
if restart == 1 then
|
if restart == 1 then
|
||||||
os.execute("/etc/init.d/S99octo restartoctonet > /dev/null 2>&1 &")
|
os.execute("/etc/init.d/S99octo restartoctonet > /dev/null 2>&1 &")
|
||||||
nextloc = "wait.html?10"
|
nextloc = "wait.html?10"
|
||||||
|
Loading…
Reference in New Issue
Block a user