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:
2026-11-01 14:57:54 +07:00
parent be2091eddd
commit aaaf0a9215
92 changed files with 749 additions and 749 deletions
+5 -5
View File
@@ -14,17 +14,17 @@ var ConfigJS = {
PHP: '',
KODE: '',
index: function(){
index() {
$('#butUbah').click(() => this.proses_edit());
$('#butSimpan').click(() => this.proses_save());
this.data_query('view');
},
proses_edit: function(){
proses_edit() {
this.data_query('edit');
},
proses_save: function(){
proses_save() {
new Request({
url: this.PHP + '/config',
sendParam: ['mode=save','REG_ID','REG_ADDRESS','REG_CITY','REG_POSTCODE','REG_PHONE','REG_EMAIL','REG_OWNER','REG_NPWP'],
@@ -35,7 +35,7 @@ var ConfigJS = {
}).send()
},
data_query: function(mode){
data_query(mode) {
new Request({
url: this.PHP + '/config',
sendParam: ['mode='+mode],
@@ -46,7 +46,7 @@ var ConfigJS = {
}).send()
},
update_event: function(){
update_event() {
if ($.inArray($('#mode').val(), ['edit']) !== -1) {
$("#butUbah").prop('disabled', true);
$("#butSimpan").prop('disabled', false);