Refactor AJAX requests from Request.JSONF to Request_JSF across multiple scripts for consistency and improved functionality.

This commit is contained in:
2026-11-01 13:11:40 +07:00
parent 52897c25c5
commit 7a585ab7c2
58 changed files with 200 additions and 200 deletions
+7 -7
View File
@@ -142,7 +142,7 @@ var PromoBeliDiscJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[5]+'"</strong> ?', () => {
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','Grup_PromoID','PromoID='+acell[0]],
}).send();
@@ -154,7 +154,7 @@ var PromoBeliDiscJS = {
FoniaJS.showError('Silakan masukkan Nama Barang Promo !');
return;
}
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','Grup_PromoID','PromoID','InvID','SatuanID','Kode_Varian'],
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
@@ -162,7 +162,7 @@ var PromoBeliDiscJS = {
},
varian_show: function(){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/form_varian',
sendParam: ['InvID','SatuanID','Kode_Varian']
}).send();
@@ -202,18 +202,18 @@ var PromoBeliDiscJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','Grup_PromoID']
}).send();
} else if (tipe=="brow-promo"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_promo',
sendParam: ['Cari_Promo'],
onSuccess: () => FoniaJS.setFocus('#Cari_Promo')
}).send();
} else if (tipe=="brow-produk"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk','Grup_PromoID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -228,7 +228,7 @@ var PromoBeliDiscJS = {
},
update_items: function(InvID, SatuanID){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/option_satuan',
sendParam: ['InvID='+InvID,'SatuanID='+SatuanID],
onSuccess: () => this.varian_show()