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