Refactor AJAX requests from Request.JSONF to Request_JSF across multiple scripts for consistency and improved functionality.
This commit is contained in:
@@ -51,7 +51,7 @@ var GELKaryaJS = {
|
||||
FoniaJS.showError("Silahkan masukkan jumlah pinjaman !");
|
||||
return;
|
||||
}
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_karya',
|
||||
sendParam: ['mode_detail=insert','Tgl_Trans','Kode_Rek','Total_Pinjam','KaryaID','Nama_Karya='+$('#KaryaID').find(':selected').text(),'Catatan','is_pinjam=1'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winPinjam)
|
||||
@@ -63,7 +63,7 @@ var GELKaryaJS = {
|
||||
FoniaJS.showError("Silahkan masukkan jumlah pembayaran !");
|
||||
return;
|
||||
}
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_karya',
|
||||
sendParam: ['mode_detail=insert','Tgl_Trans','Kode_Rek','Total_Bayar','KaryaID','Nama_Karya='+$('#KaryaID').find(':selected').text(),'Catatan','is_pinjam=0'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
|
||||
@@ -72,7 +72,7 @@ var GELKaryaJS = {
|
||||
|
||||
karya_hapus: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[0]+'"</strong> ?', () => {
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_karya',
|
||||
sendParam: ['mode_detail=delete','KaryaID','No_Trans='+acell[0]]
|
||||
}).send();
|
||||
@@ -91,7 +91,7 @@ var GELKaryaJS = {
|
||||
}
|
||||
}).send();
|
||||
} else if (tipe=="tabel-karya"){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_karya',
|
||||
sendParam: ['KaryaID']
|
||||
}).send();
|
||||
|
||||
Reference in New Issue
Block a user