diff --git a/html/exhi/application/views/project/v_project_create.php b/html/exhi/application/views/project/v_project_create.php index b7327a3e8cf9d71535990b5970ac9b14e5e2bd42..39ef1d12d1850e24b885cfc3552fa91260473aab 100644 --- a/html/exhi/application/views/project/v_project_create.php +++ b/html/exhi/application/views/project/v_project_create.php @@ -799,6 +799,17 @@ function insert_projecct(){ 'select_text': select_text, }, dataType: 'json', + beforeSend: function() { + Swal.fire({ + title: 'โปรดรอ', + html: 'กำลังดำเนินการ',// add html attribute if you want or remove + allowOutsideClick: false, + showConfirmButton: false, + onBeforeOpen: () => { + Swal.showLoading() + }, + }) + }, success: function(data) { if (data['message'] == true) { Toast.fire({ diff --git a/html/exhi/application/views/project/v_project_create_user.php b/html/exhi/application/views/project/v_project_create_user.php index fff3bc51ca291cf9999aa689869f11113e91c379..8f08512886c28990d1551e991c514ecf62b32065 100644 --- a/html/exhi/application/views/project/v_project_create_user.php +++ b/html/exhi/application/views/project/v_project_create_user.php @@ -801,6 +801,17 @@ function insert_projecct(){ 'select_text': select_text, }, dataType: 'json', + beforeSend: function() { + Swal.fire({ + title: 'โปรดรอ', + html: 'กำลังดำเนินการ',// add html attribute if you want or remove + allowOutsideClick: false, + showConfirmButton: false, + onBeforeOpen: () => { + Swal.showLoading() + }, + }) + }, success: function(data) { if (data['message'] == true) { Toast.fire({ diff --git a/html/exhi/application/views/project/v_project_edit.php b/html/exhi/application/views/project/v_project_edit.php index 56c3a1f634718886ce859eedae83c6f674f9f75d..554996852f4ee010f4fcb8ee1037ad33003e90d5 100644 --- a/html/exhi/application/views/project/v_project_edit.php +++ b/html/exhi/application/views/project/v_project_edit.php @@ -970,6 +970,17 @@ function update_projecct(){ 'select_text': select_text, }, dataType: 'json', + beforeSend: function() { + Swal.fire({ + title: 'โปรดรอ', + html: 'กำลังดำเนินการ',// add html attribute if you want or remove + allowOutsideClick: false, + showConfirmButton: false, + onBeforeOpen: () => { + Swal.showLoading() + }, + }) + }, success: function(data) { if (data['message'] == true) { Toast.fire({ diff --git a/html/exhi/application/views/project/v_project_edit_user.php b/html/exhi/application/views/project/v_project_edit_user.php index f328d50e5927e87d088b60f6af61be761ff244d1..2e917acf4670af84f6ac4d26470791544dec60bd 100644 --- a/html/exhi/application/views/project/v_project_edit_user.php +++ b/html/exhi/application/views/project/v_project_edit_user.php @@ -970,6 +970,17 @@ function update_projecct(){ 'select_text': select_text, }, dataType: 'json', + beforeSend: function() { + Swal.fire({ + title: 'โปรดรอ', + html: 'กำลังดำเนินการ',// add html attribute if you want or remove + allowOutsideClick: false, + showConfirmButton: false, + onBeforeOpen: () => { + Swal.showLoading() + }, + }) + }, success: function(data) { if (data['message'] == true) { Toast.fire({