Files
robinson/apps/js/sys/super.js
T
2026-01-22 11:06:19 +07:00

49 lines
1.4 KiB
JavaScript

/*******************************************************************
Module : /apps/js/sys/super.js
Desc. : JS - Informasi Supervisi Operator
Created By : Siau Pheng ([email protected]).
Created Date : September 11st, 2012.
Last Modified : March 19th, 2023.
(c) 2012 - 2023, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var SuperJS = {
PHP: '',
KODE: '',
AJ: null,
loading: function(){
this.data_query('detail');
if ($('#divSuper').length == 1){
SuperJS.AJ = setInterval(function(){
SuperJS.data_query('detail');
}, 1000);
}
},
detail_select: function(acell){
new Request({
url: this.PHP,
sendParam: ['data=save','USERID='+acell[0],'KODE='+acell[1],'REQ_SID='+acell[2],'REQ='+acell[7]],
onSuccess: function(){
this.data_query('detail');
}.bind(this)
}).send();
},
data_query: function(tipe){
if (tipe=="detail"){
new Request.JSONF({
url: this.PHP,
sendParam: ['data=detail'],
onSuccess: function(){
if ($('#divSuper').length == 0) clearInterval(SuperJS.AJ);
}
}).send();
}
}
};