Update app.js

This commit is contained in:
Justin 2023-04-24 18:23:58 +08:00 committed by GitHub
parent c88ad2524c
commit 61a2492c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2625,6 +2625,7 @@ function showScheduler() {
function closeScheduler() { function closeScheduler() {
document.getElementById('scheduler-div').style.display = "none"; document.getElementById('scheduler-div').style.display = "none";
document.getElementById('saved').style.display = "none";
} }
@ -2652,5 +2653,10 @@ function saveSchedulerSettings() {
}; };
console.log(settings); console.log(settings);
fetch("/saveSchedulerSettings", {
method: "POST",
body: settings,
});
document.getElementById('saved').style.display = "block";
} }