From 1a7d441b44f3010bbd8d920b93a2234bb8a7e5a6 Mon Sep 17 00:00:00 2001 From: Hariprasath S <113695067+Hariprasath4022@users.noreply.github.com> Date: Sat, 8 Aug 2026 16:44:26 +0530 Subject: [PATCH] Changes in map script --- .../domesticwastecomplaints.html | 26 ++++++++-------- .../modules/callcenterqaqc/pgrcomplaints.html | 30 +++++++++---------- .../vendors/streetVendorRequestForm.html | 26 ++++++++-------- .../modules/vendors/zonerequests.html | 26 ++++++++-------- 4 files changed, 56 insertions(+), 52 deletions(-) diff --git a/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html b/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html index dd3e7a5..bfc751d 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html +++ b/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html @@ -809,18 +809,7 @@ }); }); - document.addEventListener("click", function (e) { - - if ( - !suggestions.contains(e.target) && - e.target !== input - ) { - - suggestions.style.display = "none"; - - } - - }); + function validateName() { @@ -1354,6 +1343,19 @@ }); } + + document.addEventListener("click", function (e) { + + if ( + !suggestions.contains(e.target) && + e.target !== input + ) { + + suggestions.style.display = "none"; + + } + + }); map.addListener("click", function (event) { const clickedLatLng = event.latLng; diff --git a/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html b/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html index 8b0ab13..f4fed09 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html +++ b/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html @@ -1266,22 +1266,7 @@ }); */ }); - document.addEventListener("click", function (e) { - - if ( - !suggestions.contains(e.target) && - e.target !== input - ) { - - suggestions.style.display = "none"; - - } - - }); - - - - + //for complaint group and complainttype wise options dropdown api @@ -1569,6 +1554,19 @@ }); } + + document.addEventListener("click", function (e) { + + if ( + !suggestions.contains(e.target) && + e.target !== input + ) { + + suggestions.style.display = "none"; + + } + + }); map.addListener("click", function (event) { const clickedLatLng = event.latLng; diff --git a/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html b/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html index ec38f2c..f85f116 100644 --- a/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html +++ b/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html @@ -1090,6 +1090,19 @@ }); } + + document.addEventListener("click", function (e) { + + if ( + !suggestions.contains(e.target) && + e.target !== input + ) { + + suggestions.style.display = "none"; + + } + + }); map.addListener("click", function (event) { const clickedLatLng = event.latLng; @@ -1396,18 +1409,7 @@ }); }); - document.addEventListener("click", function (e) { - - if ( - !suggestions.contains(e.target) && - e.target !== input - ) { - - suggestions.style.display = "none"; - - } - - }); + function proceedSubmission(mobileNumber, formData) { $('#pageLoader').show(); diff --git a/src/main/resources/templates/modules/vendors/zonerequests.html b/src/main/resources/templates/modules/vendors/zonerequests.html index 38ef589..96965df 100644 --- a/src/main/resources/templates/modules/vendors/zonerequests.html +++ b/src/main/resources/templates/modules/vendors/zonerequests.html @@ -1045,6 +1045,19 @@ }); } + + document.addEventListener("click", function (e) { + + if ( + !suggestions.contains(e.target) && + e.target !== input + ) { + + suggestions.style.display = "none"; + + } + + }); map.addListener("click", function (event) { const clickedLatLng = event.latLng; @@ -1341,18 +1354,7 @@ }); - document.addEventListener("click", function (e) { - - if ( - !suggestions.contains(e.target) && - e.target !== input - ) { - - suggestions.style.display = "none"; - - } - - }); + // Validation helpers function validatePhoneNumber(input) {