From a2d271ff10b0b8672f17c520c6c8f97dcd71e1a9 Mon Sep 17 00:00:00 2001 From: Steve Tynor Date: Mon, 17 Jun 2024 15:26:46 -0400 Subject: [PATCH] fix #83: Info dialogs auto-hide --- resources/app/static/js/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/app/static/js/index.js b/resources/app/static/js/index.js index ff6cb89..93c33ec 100644 --- a/resources/app/static/js/index.js +++ b/resources/app/static/js/index.js @@ -95,7 +95,11 @@ let index = { } console.log("INFO NOTIFICATION: " + message) document.getElementById("alertTitle").innerHTML = "Info"; - document.getElementById("alertText").innerHTML = message; + document.getElementById("alertText").innerHTML = message; + // Make alert messages hide themselves after 3s - no need to click + setTimeout(function(){ + $('#alertModal').modal('hide'); + }, 3000); $('#alertModal').modal(); },