close scheduler / screensaver divs when clicked outside
This commit is contained in:
parent
bda162c0c6
commit
1812c63908
@ -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";
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user