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 SYSProfileJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
index: function(){
|
||||
index() {
|
||||
$('#butSave').click(() => this.save_profile());
|
||||
$('#win'+this.KODE).find('#FileGambar').off('change').change(() => {
|
||||
var fd = new FormData(), files = $('#FileGambar')[0].files[0];
|
||||
@@ -38,7 +38,7 @@ var SYSProfileJS = {
|
||||
this.get_picture();
|
||||
},
|
||||
|
||||
save_profile: function(){
|
||||
save_profile() {
|
||||
new Request({
|
||||
url: this.PHP + '/save_profile',
|
||||
sendParam: ['Nama','Posisi','Email','HP'],
|
||||
@@ -53,7 +53,7 @@ var SYSProfileJS = {
|
||||
}).send();
|
||||
},
|
||||
|
||||
get_picture: function(){
|
||||
get_picture() {
|
||||
new Request({
|
||||
url: this.PHP + '/get_picture',
|
||||
onSuccess: (ajson) => {
|
||||
|
||||
Reference in New Issue
Block a user