From b67d06387df73d7beef37fe9b01287609831274a Mon Sep 17 00:00:00 2001 From: Hariprasath S <113695067+Hariprasath4022@users.noreply.github.com> Date: Wed, 9 Sep 2026 17:26:57 +0530 Subject: [PATCH] Changes in mobile screen registration form --- src/main/resources/templates/index.html | 14 +++++--------- src/main/resources/templates/index_tamil.html | 14 +++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 38dd594..71163ba 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -2335,20 +2335,16 @@ function successPopup(id) { - $("#submitBtn").prop("disabled", true); + $("#submitBtn").prop("disabled", true); Swal.fire({ title: "Good job!", text: "Thank you for registering as a volunteer \nwith the Greater Chennai Corporation for monsoon support! \nYour registration is successful, and your reference number is [GCC-" + id + "]. \nYou will be contacted once the final listing is complete and deployment details \nare confirmed. Together, we can help Chennai stay safe this monsoon", icon: "success", - allowOutsideClick: false, - allowEscapeKey: false, - allowEnterKey: false - }).then((result) => { - if (result.isConfirmed) { - window.location.href = "https://chennaicorporation.gov.in/gcc/"; // Redirect to the desired URL - } - }); + showConfirmButton: false + }).then(() => { + location.reload(); + }); } //script for otp diff --git a/src/main/resources/templates/index_tamil.html b/src/main/resources/templates/index_tamil.html index 4cb6014..5be6408 100644 --- a/src/main/resources/templates/index_tamil.html +++ b/src/main/resources/templates/index_tamil.html @@ -2314,20 +2314,16 @@ error: function (xhr) { function successPopup(id) { - $("#submitBtn").prop("disabled", true); + $("#submitBtn").prop("disabled", true); Swal.fire({ title: "Good job!", text: "Thank you for registering as a volunteer \nwith the Greater Chennai Corporation for monsoon support! \nYour registration is successful, and your reference number is [GCC-" + id + "]. \nYou will be contacted once the final listing is complete and deployment details \nare confirmed. Together, we can help Chennai stay safe this monsoon", icon: "success", - allowOutsideClick: false, - allowEscapeKey: false, - allowEnterKey: false - }).then((result) => { - if (result.isConfirmed) { - window.location.href = "https://chennaicorporation.gov.in/gcc/"; // Redirect to the desired URL - } - }); + showConfirmButton: false + }).then(() => { + location.reload(); + }); } //script for otp