Maintenance dan Bugs Fix
This commit is contained in:
@@ -124,44 +124,6 @@
|
||||
"processing": "<div class='loading'></div>",
|
||||
},
|
||||
});
|
||||
|
||||
$(document).on("click",".chk-upload", function(){
|
||||
let val = $(this).val();
|
||||
let reset = $(this).prop("checked") == 1 ?0:1;
|
||||
location.href = "{{ URL::to("/admin/users") }}/"+val+"/lock-upload/"+reset;
|
||||
});
|
||||
|
||||
$("#btn_lock_all").on("click", function(){
|
||||
let test = Swal.fire({
|
||||
title: 'Fitur upload data akan dikunci untuk semua user!?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-upload-all/0/0";
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
$("#btn_reset_lock_all").on("click", function(){
|
||||
let test = Swal.fire({
|
||||
title: 'Fitur upload data akan direset untuk semua user!?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-upload-all/0/1";
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user