diff --git a/static/app.js b/static/app.js index 85864bb..033b118 100755 --- a/static/app.js +++ b/static/app.js @@ -3622,4 +3622,12 @@ function saveScreensaverSettings() { } +// close scheduler or screensaver div +document.addEventListener("click", function(event) { + if (!document.getElementById("screensaver-div").contains(event.target) || !document.getElementById("scheduler-div").contains(event.target)) { + document.getElementById("screensaver-div").style.display = "none"; + document.getElementById("scheduler-div").style.display = "none"; + } +}); +