Refactor AJAX requests from Request.JSONF to Request_JSF across multiple scripts for consistency and improved functionality.
This commit is contained in:
@@ -36,14 +36,14 @@ var PPOBTXJS = {
|
||||
},
|
||||
|
||||
proses_delete: function(no_tx){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['mode_detail=delete','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
||||
}).send();
|
||||
},
|
||||
|
||||
proses_reproc: function(no_tx){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['mode_detail=reproc','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
||||
}).send();
|
||||
@@ -87,7 +87,7 @@ var PPOBTXJS = {
|
||||
|
||||
data_query: function(tipe){
|
||||
if (tipe=="tabel-detail"){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['Tgl_From','Tgl_To','Cari_TX']
|
||||
}).send();
|
||||
|
||||
@@ -43,14 +43,14 @@ var PrabayarJS = {
|
||||
},
|
||||
|
||||
proses_delete: function(){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['mode_detail=delete','No_TX']
|
||||
}).send();
|
||||
},
|
||||
|
||||
proses_reproc: function(ft){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['mode_detail=reproc','No_TX','FT='+ft]
|
||||
}).send();
|
||||
@@ -246,7 +246,7 @@ var PrabayarJS = {
|
||||
}
|
||||
}).send();
|
||||
} else if (tipe=='tabel-tx'){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['Cari_PPOB']
|
||||
}).send();
|
||||
@@ -274,7 +274,7 @@ var PrabayarJS = {
|
||||
$('.rowToken').addClass('d-none');
|
||||
$('.rowPulsa').removeClass('d-none');
|
||||
}
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/option_operator',
|
||||
sendParam: ['KateID'],
|
||||
}).send();
|
||||
@@ -283,7 +283,7 @@ var PrabayarJS = {
|
||||
oc_Tujuan: function(){
|
||||
if ($('#Tujuan').val()=='') return false;
|
||||
if ($.inArray(parseInt($('#KateID').val()), this.KATE_PREFIX) === -1) return false;
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/option_operator',
|
||||
sendParam: ['KateID','Tujuan'],
|
||||
}).send();
|
||||
@@ -291,7 +291,7 @@ var PrabayarJS = {
|
||||
|
||||
oc_OpeID: function(){
|
||||
if ($('#OpeID').val()==0) return false;
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/option_produk',
|
||||
sendParam: ['KateID','OpeID'],
|
||||
}).send();
|
||||
|
||||
@@ -52,7 +52,7 @@ var TopupJS = {
|
||||
$('#Jumlah').focus();
|
||||
return;
|
||||
}
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_detail',
|
||||
sendParam: ['mode_detail=insert','Tgl_Depo','Jumlah','Bank'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||
@@ -61,7 +61,7 @@ var TopupJS = {
|
||||
|
||||
data_query: function(tipe){
|
||||
if (tipe=="tabel-detail"){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_detail',
|
||||
sendParam: ['Cari_Topup']
|
||||
}).send();
|
||||
|
||||
Reference in New Issue
Block a user