save scheduler settings
This commit is contained in:
parent
c1dc100bca
commit
ae4332fa6a
@ -2627,3 +2627,30 @@ function closeScheduler() {
|
||||
document.getElementById('scheduler-div').style.display = "none";
|
||||
}
|
||||
|
||||
|
||||
// save scheduler settings
|
||||
|
||||
function saveSchedulerSettings() {
|
||||
let shutdown_hour = document.getElementById("shutdown-hour-select").value;
|
||||
let shutdown_minute = document.getElementById("shutdown-minute-select").value;
|
||||
let shutdown_enabled = document.getElementById("shutdown-enabled").checked;
|
||||
|
||||
let reboot_hour = document.getElementById("reboot-hour-select").value;
|
||||
let reboot_minute = document.getElementById("reboot-minute-select").value;
|
||||
let reboot_enabled = document.getElementById("reboot-enabled").checked;
|
||||
|
||||
let timezone = document.getElementById("timezone-select").value;
|
||||
|
||||
let settings = {
|
||||
shutdown_hour: shutdown_hour,
|
||||
shutdown_minute: shutdown_minute,
|
||||
shutdown_enabled: shutdown_enabled,
|
||||
reboot_hour: reboot_hour,
|
||||
reboot_minute: reboot_minute,
|
||||
reboot_enabled: reboot_enabled,
|
||||
timezone: timezone,
|
||||
};
|
||||
|
||||
console.log(settings);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user