PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
ecommerce
/
catalog
$.popup('supplier', 'popupform', { afterInit: function(element) { var formData = this.formData || {}; var that = this; var upload_button = $('.edit_thumbnail_btn', element); var upload_button_id = this.name + upload_button.attr('class'); upload_button.attr('id',upload_button_id); this.uploader = new FileUploader({ browse_button : upload_button_id, folder: 'suppliers', onFileUploaded : function(up, file, json) { that.selectImage(json['name']); }, }); }, getFormData : function() { var data = this.collectDataFromElement(); if(typeof this.logo != 'undefined') { data.logo = this.logo; } return data; }, selectImage : function(name) { this.logo = name; }, }, { }); $.manage('ecommerce.catalog.supplier', '', { openEditor : function(id) { var that = this; $.popup('supplier', { id: id, onOK: function() { that.reloadGrid(); } }); }, onEdit : function(ui, id) { this.openEditor(id); }, init : function() { var that = this; this.loadGrid ( 'suppliers', [ { display : t('LBL_ORDER_ORDER_ID'), name : 'id', width : 40, sortable : true, align : 'center', searchable : true, search_type : 'number' },{ display : t('LBL_PRODUCT_PRODUCT_IMAGE'), name : 'logo', type:'image', src: 'logo', width : 35, sortable : false, align : 'left' },{ display : t('LBL_PRODUCT_PRODUCT_NAME'), name : 'name', width : 300, sortable : true, align : 'left', searchable : true, } ,{ display : '', name : 'edit', type:'button', command: 'edit', width : 10, align : 'left', },{ display : '', name : 'del', type:'button', command: 'delete', width : 10, align : 'left', }], [ { name : t('LBL_ADD'), bclass : 'add', onpress: function() { that.openEditor(); } },{ name : t('LBL_PRODUCT_DELETE_PRODUCT'), bclass : 'delete', onpress : function(name, gDiv,bDiv) { var ids = this.grid.getSelectedId(); that.deleteItems(ids); }, }] ); } });
[+]
..
[-] option_set.js
[edit]
[-] manufacturer.js
[edit]
[-] review.js
[edit]
[-] product.js
[edit]
[-] category.js
[edit]
[-] supplier.js
[edit]
[+]
option_set
[-] option_set - Copy.js
[edit]