Refactor application submission response in ApplicationController to return JSON format and update phone number validation rule. Modify careers index view to handle new response structure.

This commit is contained in:
2025-07-29 11:38:42 +05:00
parent a627c85416
commit 330fc76ed3
2 changed files with 5 additions and 3 deletions

View File

@@ -153,7 +153,7 @@
})
.then(response => response.json())
.then(data => {
if (data.success) {
if (data.message) {
alert(data.message);
var modal = bootstrap.Modal.getInstance(applicationModal);
modal.hide();