From dff0cf11a31a1f314939a3d5d0e9c06ce40d7d3f Mon Sep 17 00:00:00 2001 From: subhas-pramanik-09 Date: Wed, 4 Dec 2024 09:46:59 +0530 Subject: [PATCH 1/2] Closing of popup message for quick action --- index.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index aea8f6d80a..fb6d5f2092 100644 --- a/index.html +++ b/index.html @@ -324,12 +324,24 @@ let printText = document.getElementById("printText"); printText.classList.remove("show"); } - + function hideErrorText() { let errorText = document.getElementById("errorText"); errorText.classList.remove("show"); hideArrows(); // This function is declared in js/activity.js } + + document.addEventListener("click", function (event) { + let printText = document.getElementById("printText"); + let errorText = document.getElementById("errorText"); + + if (printText && printText.classList.contains("show") && !printText.contains(event.target)) { + hidePrintText(); + } + if (errorText && errorText.classList.contains("show") && !errorText.contains(event.target)) { + hideErrorText(); + } + });
From 17cb8c88092e64dbcc03ecfdb2c0d70fd21ca620 Mon Sep 17 00:00:00 2001 From: subhas-pramanik-09 Date: Wed, 4 Dec 2024 21:15:51 +0530 Subject: [PATCH 2/2] closing of popup msg after trash --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index fb6d5f2092..a3dad57244 100644 --- a/index.html +++ b/index.html @@ -324,7 +324,6 @@ let printText = document.getElementById("printText"); printText.classList.remove("show"); } - function hideErrorText() { let errorText = document.getElementById("errorText"); errorText.classList.remove("show");