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,7 +14,7 @@ var TopupJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
index: function(){
|
||||
index() {
|
||||
this.data_query('tabel-detail');
|
||||
$('#butTambah').click(() => this.tx_tambah());
|
||||
$('#Cari_Topup').keydown((e) => {
|
||||
@@ -29,11 +29,11 @@ var TopupJS = {
|
||||
FoniaJS.setFocus('#Cari_Topup');
|
||||
},
|
||||
|
||||
tx_info: function(acell){
|
||||
tx_info(acell) {
|
||||
this.winInfo = FoniaJS.showWindow('', 'Informasi Topup Saldo', '<div class="form-control fs-4">'+acell[6]+'</div>', 'md');
|
||||
},
|
||||
|
||||
tx_tambah: function(){
|
||||
tx_tambah() {
|
||||
new Request({
|
||||
url: this.PHP + '/form_topup',
|
||||
onSuccess: (a) => {
|
||||
@@ -46,7 +46,7 @@ var TopupJS = {
|
||||
}).send();
|
||||
},
|
||||
|
||||
tx_simpan: function(){
|
||||
tx_simpan() {
|
||||
if (parseInt($('#Jumlah').val())==0) {
|
||||
FoniaJS.showError('Silakan isi Jumlah lebih dari NOL !');
|
||||
$('#Jumlah').focus();
|
||||
@@ -59,7 +59,7 @@ var TopupJS = {
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe){
|
||||
data_query(tipe) {
|
||||
if (tipe=="tabel-detail"){
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_detail',
|
||||
|
||||
Reference in New Issue
Block a user