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