fix polis
This commit is contained in:
@@ -556,7 +556,7 @@
|
||||
|
||||
function checkAGH()
|
||||
{
|
||||
|
||||
$('AGHModalEdit').hide();
|
||||
}
|
||||
|
||||
function checktuntutbaki(e)
|
||||
@@ -691,6 +691,7 @@
|
||||
function ulangcetakagh(e)
|
||||
{
|
||||
var komen2 = $(e).data('komen2');
|
||||
var noruj = $(e).data('histid');
|
||||
|
||||
if(komen2 !== null)
|
||||
{
|
||||
@@ -711,6 +712,7 @@
|
||||
}
|
||||
}else{
|
||||
$('#AGHModalEdit').modal('show');
|
||||
$('#norujukanhiddenedit').val(noruj);
|
||||
swal.close();
|
||||
}
|
||||
|
||||
@@ -746,7 +748,7 @@
|
||||
showConfirmButton: false,
|
||||
html: "<br>" +
|
||||
'<button type="button" role="button" tabindex="0" class="btn btn-primary mr-1" onclick="swal.close()">' + 'Okay' + '</button>' +
|
||||
'<button type="button" role="button" tabindex="0" class="btn btn-primary" onclick="ulangcetakagh(this)" data-komen2="' + data[0].komen2 + '">' + 'Ulang Cetak' + '</button>',
|
||||
'<button type="button" role="button" tabindex="0" class="btn btn-primary" data-histid="' + histid + '" onclick="ulangcetakagh(this)" data-komen2="' + data[0].komen2 + '">' + 'Ulang Cetak' + '</button>',
|
||||
icon: 'error',
|
||||
title: 'Surat Akuan Gadaian Hilang telah dikeluarkan!'
|
||||
});
|
||||
@@ -802,6 +804,24 @@
|
||||
|
||||
});
|
||||
|
||||
$('#negeriaghedit').change(function(){
|
||||
|
||||
var daerahselect = document.getElementById("daerahaghedit");
|
||||
|
||||
$('#daerahaghedit').attr('disabled', false);
|
||||
$(daerahagh).empty();
|
||||
$.ajax({
|
||||
method:'get',
|
||||
url: api_url + '/api/daerahkodnegeri/' + this.value,
|
||||
success:function(data){
|
||||
$.each(data, function( index, daerah ){
|
||||
addOptionEdit(daerah.koddaerah,daerah.namadaerah);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function addOption(textopt,valueopt) {
|
||||
|
||||
optionText = textopt;
|
||||
@@ -810,6 +830,14 @@
|
||||
$('#daerahagh').append(`<option value='${optionText}'>${optionValue}</option>`);
|
||||
}
|
||||
|
||||
function addOptionEdit(textopt,valueopt) {
|
||||
|
||||
optionText = textopt;
|
||||
optionValue = valueopt;
|
||||
|
||||
$('#daerahaghedit').append(`<option value='${optionText}'>${optionValue}</option>`);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function rekodasal(gadaian){
|
||||
|
||||
Reference in New Issue
Block a user