Develop realisasi belanja dbh
This commit is contained in:
@@ -110,8 +110,7 @@
|
||||
Swal.fire('{{ $message }}', '', 'error');
|
||||
@endif
|
||||
|
||||
initailizeSelect2 = () =>{
|
||||
$('.skpd_search').select2({
|
||||
$('.skpd_search').select2({
|
||||
placeholder: 'Pilih SKPD',
|
||||
ajax: {
|
||||
url: '/skpd-search',
|
||||
@@ -129,10 +128,87 @@
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
initailizeSelect2();
|
||||
$('.prog_search').select2({
|
||||
placeholder: 'Pilih Program',
|
||||
ajax: {
|
||||
url: '/item-search-prog',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('.keg_search').select2({
|
||||
placeholder: 'Pilih Kegiatan',
|
||||
ajax: {
|
||||
url: '/item-search-keg',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('.sk_search').select2({
|
||||
placeholder: 'Pilih Sub Kegiatan',
|
||||
ajax: {
|
||||
url: '/item-search-sk',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('.rsk_search').select2({
|
||||
placeholder: 'Pilih Rinci Sub Kegiatan',
|
||||
ajax: {
|
||||
url: '/item-search-rsk',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("click",".modalButton",function (e){
|
||||
$("#overlayLoader").removeClass("d-flex");
|
||||
|
||||
Reference in New Issue
Block a user