Refactor member and product scripts to use concise method definitions
- Updated all function declarations to use ES6 shorthand method syntax in member.js, member_grup.js, point_barang.js, point_skema.js, point_tipe.js, kategori.js, operator.js, produk.js, produk_grup.js, rekpos.js, satuan.js, supplier.js, and varian.js.
This commit is contained in:
@@ -14,12 +14,12 @@ var SuperJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
index: function(){
|
||||
index() {
|
||||
this.data_query();
|
||||
if ($('#divSuper').length > 0 && socket.active) socket.emit('super-check');
|
||||
},
|
||||
|
||||
detail_select: function(acell){
|
||||
detail_select(acell) {
|
||||
new Request({
|
||||
url: this.PHP + '/approve',
|
||||
sendParam: ['AuthID='+acell[0]],
|
||||
@@ -27,7 +27,7 @@ var SuperJS = {
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(){
|
||||
data_query() {
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_detail',
|
||||
}).send();
|
||||
|
||||
Reference in New Issue
Block a user