Maintenance dan Bugs Fix

This commit is contained in:
Pusdatin BPKD Jkt
2022-08-24 16:21:29 +07:00
parent 52630f99ea
commit bcd667ae11
21 changed files with 706 additions and 109 deletions
@@ -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