added hibernate
This commit is contained in:
@@ -281,6 +281,7 @@ desired effect
|
||||
});
|
||||
|
||||
$('#store_owners_table').DataTable();
|
||||
|
||||
$('#tbl_commission').DataTable({
|
||||
initComplete: function () {
|
||||
this.api().columns(0).every( function () {
|
||||
@@ -1337,39 +1338,69 @@ desired effect
|
||||
|
||||
});
|
||||
|
||||
$(".btn-delete-print-file").click(function(e){
|
||||
e.preventDefault();
|
||||
var r = confirm("Do you really want to delete this Print File? This process cannot be undone.");
|
||||
if (r == true) {
|
||||
var id = $(this).data('id');
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('admin/print-files/delete') }}",
|
||||
data : {
|
||||
id: id
|
||||
},
|
||||
beforeSend: function(xhr){
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
$(".btn-delete-print-file").click(function(e){
|
||||
e.preventDefault();
|
||||
var r = confirm("Do you really want to delete this Print File? This process cannot be undone.");
|
||||
if (r == true) {
|
||||
var id = $(this).data('id');
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('admin/print-files/delete') }}",
|
||||
data : {
|
||||
id: id
|
||||
},
|
||||
beforeSend: function(xhr){
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
},
|
||||
success : function(response){
|
||||
|
||||
if(response.success){
|
||||
alert(response.message);
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
$('#store_hibernate').change(function() {
|
||||
var data = $("#frm_edit_store").serializeArray();
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('admin/post/update-hibernate') }}",
|
||||
data : {
|
||||
data: data,
|
||||
IsActive: $(this).prop('checked')
|
||||
},
|
||||
beforeSend:function(xhr){
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest');
|
||||
},
|
||||
success : function(response){
|
||||
|
||||
// console.log(response);
|
||||
if(response.success){
|
||||
alert(response.message);
|
||||
location.reload();
|
||||
}else{
|
||||
// $('#isActiveAnnouncement').attr('checked', false);
|
||||
|
||||
$('#isActiveAnnouncement').removeClass('btn-primary');
|
||||
// $(this).addClass('btn-default');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
|
||||
}); // end document ready
|
||||
|
||||
function formatStatePattern (state) {
|
||||
|
||||
Reference in New Issue
Block a user