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
+6 -6
View File
@@ -56,7 +56,7 @@ var MonJS = {
ID_CABANG: 0,
TOTAL_SHOP: 0,
index: function(){
index() {
new Request({
url: this.PHP + '/index',
onSuccess: (ajson) => {
@@ -70,31 +70,31 @@ var MonJS = {
}).send();
},
hide_pos: function(){
hide_pos() {
this.ISSHOW_POS = false;
$('#divBanner').removeClass('d-none');
$('#divShop').addClass('d-none');
},
show_pos: function(){
show_pos() {
this.ISSHOW_POS = true;
$('#divBanner').addClass('d-none');
$('#divShop').removeClass('d-none');
this.data_query('shop');
},
hide_thank: function(){
hide_thank() {
$('#divBlur').addClass('d-none');
$('#divThank').addClass('d-none');
},
show_thank: function(){
show_thank() {
$('#divBlur').removeClass('d-none');
$('#divThank').removeClass('d-none');
this.data_query('thank');
},
data_query: function(tipe){
data_query(tipe) {
if (tipe == 'config'){
$.post(this.PHP + '/config', {}, (ajson) => {
if (ajson.PROMO_DURASI) MonJS.DEF_PROMO_DUR = ajson.PROMO_DURASI;