Browse Source

Changes in map script

master
Hariprasath S 2 months ago
parent
commit
1a7d441b44
  1. 24
      src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html
  2. 28
      src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html
  3. 24
      src/main/resources/templates/modules/vendors/streetVendorRequestForm.html
  4. 24
      src/main/resources/templates/modules/vendors/zonerequests.html

24
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() { function validateName() {
@ -1355,6 +1344,19 @@
} }
document.addEventListener("click", function (e) {
if (
!suggestions.contains(e.target) &&
e.target !== input
) {
suggestions.style.display = "none";
}
});
map.addListener("click", function (event) { map.addListener("click", function (event) {
const clickedLatLng = event.latLng; const clickedLatLng = event.latLng;
if (marker) marker.setMap(null); if (marker) marker.setMap(null);

28
src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html

@ -1266,21 +1266,6 @@
}); */ }); */
}); });
document.addEventListener("click", function (e) {
if (
!suggestions.contains(e.target) &&
e.target !== input
) {
suggestions.style.display = "none";
}
});
@ -1570,6 +1555,19 @@
} }
document.addEventListener("click", function (e) {
if (
!suggestions.contains(e.target) &&
e.target !== input
) {
suggestions.style.display = "none";
}
});
map.addListener("click", function (event) { map.addListener("click", function (event) {
const clickedLatLng = event.latLng; const clickedLatLng = event.latLng;
if (marker) marker.setMap(null); if (marker) marker.setMap(null);

24
src/main/resources/templates/modules/vendors/streetVendorRequestForm.html

@ -1091,6 +1091,19 @@
} }
document.addEventListener("click", function (e) {
if (
!suggestions.contains(e.target) &&
e.target !== input
) {
suggestions.style.display = "none";
}
});
map.addListener("click", function (event) { map.addListener("click", function (event) {
const clickedLatLng = event.latLng; const clickedLatLng = event.latLng;
if (marker) marker.setMap(null); if (marker) marker.setMap(null);
@ -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) { function proceedSubmission(mobileNumber, formData) {
$('#pageLoader').show(); $('#pageLoader').show();

24
src/main/resources/templates/modules/vendors/zonerequests.html

@ -1046,6 +1046,19 @@
} }
document.addEventListener("click", function (e) {
if (
!suggestions.contains(e.target) &&
e.target !== input
) {
suggestions.style.display = "none";
}
});
map.addListener("click", function (event) { map.addListener("click", function (event) {
const clickedLatLng = event.latLng; const clickedLatLng = event.latLng;
if (marker) marker.setMap(null); if (marker) marker.setMap(null);
@ -1341,18 +1354,7 @@
}); });
document.addEventListener("click", function (e) {
if (
!suggestions.contains(e.target) &&
e.target !== input
) {
suggestions.style.display = "none";
}
});
// Validation helpers // Validation helpers
function validatePhoneNumber(input) { function validatePhoneNumber(input) {

Loading…
Cancel
Save