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
+7 -7
View File
@@ -14,14 +14,14 @@ var AboutJS = {
PHP: '',
KODE: '',
index: function(){
index() {
$('#win'+this.KODE).find('#divBuildInfo').html('<p>Aplikasi dibuat dengan komponen :<br>- jQuery Version '+$().jquery+' <br>- Bootstrap Version '+$.fn.tooltip.Constructor.VERSION+' <br>- FoniaJS Version '+FoniaJS.version+' <br>- FoniaPHP Version '+FoniaJS.version+'</p>');
$('#butDBCek').click(() => this.db_check());
$('#butDBOpti').click(() => this.db_opti());
$('#butUpdateCek').click(() => this.update_check());
},
db_check: function(){
db_check() {
new Request({
url: this.PHP + '/db_check',
onSuccess: (ajson) => {
@@ -30,7 +30,7 @@ var AboutJS = {
}).send();
},
db_opti: function(){
db_opti() {
new Request({
url: this.PHP + '/db_check',
onSuccess: (ajson) => {
@@ -39,7 +39,7 @@ var AboutJS = {
}).send();
},
update_check: function(){
update_check() {
new Request({
url: this.PHP + '/update_check',
onSuccess: (ajson) => {
@@ -52,7 +52,7 @@ var AboutJS = {
}).send();
},
db_run: function(db_count = 0){
db_run(db_count = 0) {
if (db_count === 0) return false;
var items = Array(db_count).fill(0).map((_, index) => index);
var $ul = $('#db-list').empty();
@@ -70,7 +70,7 @@ var AboutJS = {
}, $.Deferred().resolve().promise());
},
opti_run: function(db_count = 0){
opti_run(db_count = 0) {
if (db_count === 0) return false;
var items = Array(db_count).fill(0).map((_, index) => index);
var $ul = $('#db-list').empty();
@@ -88,7 +88,7 @@ var AboutJS = {
}, $.Deferred().resolve().promise());
},
update_run: function(){
update_run() {
new Request({
url: this.PHP + '/update_proses',
onSuccess: (adata) => {