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
@@ -250,7 +250,7 @@ var BeliJS = {
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','No_Beli','ID='+acell[0]],
onSuccess: () => {
@@ -267,7 +267,7 @@ var BeliJS = {
return;
}
var _mdetail = $('#mode_detail').val();
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','No_Beli','ID','InvID','SatuanID','VarianID','Qty','Harga_Beli','Disk_Rupiah','Disk_Persen1','Disk_Persen2','Disk_Persen3','Disk_Persen4','Disk_Persen5'],
onSuccess: () => {
@@ -358,7 +358,7 @@ var BeliJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','No_Beli'],
onSuccess: () => {
@@ -367,18 +367,18 @@ var BeliJS = {
}
}).send();
} else if (tipe=="brow-tx"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_tx',
sendParam: ['Cari_TX'],
onSuccess: () => FoniaJS.setFocus('#Cari_TX')
}).send();
} else if (tipe=="brow-pending"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_pending',
sendParam: ['Cari_Pending']
}).send();
} else if (tipe=="brow-produk"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_produk',
sendParam: ['Cari_Produk','Filter_Browse','SupID'],
onSuccess: () => FoniaJS.setFocus('#Cari_Produk')
@@ -420,7 +420,7 @@ var BeliJS = {
},
update_Varian: function(){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/option_varian',
sendParam: ['InvID','SatuanID','VarianID']
}).send();