update
parent
1322aa4b0a
commit
89167a425e
|
|
@ -439,6 +439,22 @@
|
|||
@endsection
|
||||
@section('page-js')
|
||||
<script type="text/javascript">
|
||||
$(document).on('change', '.uncheckall', function () {
|
||||
if ($(this).is(':checked')) {
|
||||
// uncheck semua checkbox KECUALI checkbox terakhir ini
|
||||
$('.checklistInput').not(this).prop('checked', false);
|
||||
$('.file-item').addClass('d-none');
|
||||
$('.file-itemInput').removeClass('is-required');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('change', '.checklistInput:not(.uncheckall)', function () {
|
||||
if ($(this).is(':checked')) {
|
||||
// kalau checkbox biasa dicentang, pastikan checkbox uncheckall mati
|
||||
$('.uncheckall').prop('checked', false);
|
||||
}
|
||||
});
|
||||
|
||||
$('.clickModal').on('click',function(){
|
||||
$('.remove').remove();
|
||||
const fileType = $(this).data('type');
|
||||
|
|
|
|||
Loading…
Reference in New Issue