Files
cmasa/app/Scripts/system/super.js
T
2026-10-29 13:34:31 +07:00

36 lines
945 B
JavaScript

/*******************************************************************
PHP Class : /Controller/System/SuperController
Description : Supervisi Operator
Created By : Siau Pheng ([email protected]).
Created Date : September 11st, 2012.
Last Modified : August 29th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var SuperJS = {
PHP: '',
KODE: '',
index: function(){
this.data_query();
if ($('#divSuper').length > 0 && socket.active) socket.emit('super-check');
},
detail_select: function(acell){
new Request({
url: this.PHP + '/approve',
sendParam: ['AuthID='+acell[0]],
onSuccess: () => this.data_query()
}).send();
},
data_query: function(){
new Request.JSONF({
url: this.PHP + '/table_detail',
}).send();
}
};