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
+5 -5
View File
@@ -172,7 +172,7 @@ var GELUmumJS = {
detail_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+' - '+acell[2]+'"</strong> ?', () => {
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail=delete','Kode_Jurnal','ID='+acell[0]]
}).send();
@@ -185,7 +185,7 @@ var GELUmumJS = {
return;
}
var _mdetail = $('#mode_detail').val();
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','mode_detail','Kode_Jurnal','Kode_Rek','DK','Jumlah','ID'],
onSuccess: () => {
@@ -237,18 +237,18 @@ var GELUmumJS = {
}
}).send();
} else if (tipe=="tabel-detail"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_detail',
sendParam: ['mode','Kode_Jurnal']
}).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-rek"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_rek',
sendParam: ['Cari_Rek'],
onSuccess: () => FoniaJS.setFocus('#Cari_Rek')