Approved at '.date('d-m-Y H:i:s', strtotime($docData->updated_at)).' through OTP sent to '.$clientData->mobile_no.' from ip address '.$docData->ip_address.'
'; } ?>
-
-
-
-
-
+
+
+
+
+
+
+ is_approved == 1){ echo '
Approved at '.date('d-m-Y H:i:s', strtotime($docData->updated_at)).' through OTP sent to '.$clientData->mobile_no.' from ip address '.$docData->ip_address.'
'; } ?>
+
+
+
+
+
-
-
+
+
+
@@ -333,7 +355,8 @@
// Get the HTML content of the element as a string
var htmlContent = element.innerHTML;
-
+ $('.loader').fadeIn();
+ $('.loader-mask').fadeIn();
$.ajax({
url: '',
method: 'POST',
@@ -368,17 +391,22 @@
}
},
- error: function(xhr, status, error) {
-
+ error: function(xhr, status, error) {
+
+ $('.loader').fadeOut();
+ $('.loader-mask').fadeOut('slow');
console.error('Error : ' + error);
}
});
+
+ $('.loader').fadeOut();
+ $('.loader-mask').fadeOut('slow');
});
});
function statusChange(params) {
- console.log(params);
+ // console.log(params);
var status = params.getAttribute('data-isactive');
var doc_id = params.getAttribute('data-id');
if(status == 1){
@@ -387,6 +415,11 @@
var is_active= 1;
}
+ if($(params).attr('title') == 'Share'){
+ $('.loader').fadeIn();
+ $('.loader-mask').fadeIn();
+ }
+
var formData = {
doc_id: doc_id,
is_active: is_active
@@ -397,11 +430,15 @@
data: formData,
dataType: 'json',
success: function(response) {
+ $('.loader').fadeOut();
+ $('.loader-mask').fadeOut('slow');
if (response.data) {
window.location.reload();
}
},
error: function(xhr, status, error) {
+ $('.loader').fadeOut();
+ $('.loader-mask').fadeOut('slow');
// Handle error response here
console.error(xhr.responseText);
}
diff --git a/app/Views/client_list.php b/app/Views/client_list.php
index 57f59ba..9090800 100644
--- a/app/Views/client_list.php
+++ b/app/Views/client_list.php
@@ -151,7 +151,7 @@