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) {
|
||||
|
||||
@@ -86,6 +86,11 @@
|
||||
<i class="fa fa-list-alt"></i> <span>Print Orders</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('admin/tax-settings') ? 'active' : '' }}">
|
||||
<a href="{{ url('/admin/tax-settings') }}">
|
||||
<i class="fa fa-money"></i> <span>Tax Settings</span>
|
||||
</a>
|
||||
</li>
|
||||
@php $under_reports = array("/admin/reports", "/admin/commission") @endphp
|
||||
<li class="treeview {{ (in_array($getrequest_url, $under_reports)) ? 'active' : '' }}">
|
||||
<a href="#"><i class="fa fa-line-chart"></i> <span>Reports</span>
|
||||
|
||||
Reference in New Issue
Block a user