Maintenance Kontrak
This commit is contained in:
@@ -148,26 +148,6 @@
|
||||
hitung_bersih();
|
||||
})
|
||||
|
||||
$('#txt_id_sps').select2({
|
||||
placeholder: 'Pilih DBH / DAK',
|
||||
ajax: {
|
||||
url: '/item-search-sps?ta='+$("#txt_ta").val(),
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#txt_id_sps').on('select2:select', function (e) {
|
||||
var data = e.params.data;
|
||||
$("#txt_rek_sps").val(data.text);
|
||||
|
||||
Reference in New Issue
Block a user