PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
customize
define([], function() { return function($scope, communication, popup_form) { var statuses = [ t('LBL_PRODUCT_STATUS_NOT_AVAILABLE'), t('LBL_PRODUCT_STATUS_ON_SALE') ]; $scope.showType = function(type) { for(var i = 0;i < $scope.module_list.length;i++) { if($scope.module_list[i].name == type) return $scope.module_list[i].display_name; } return ''; } $scope.gridOptions={ data:[] }; $scope.gridInstance={}; $scope.module_list = []; $scope.filters = {}; communication.getList('moduleList',{},'customize.skin').then(function(json) { $scope.module_list = json; }); $scope.add = function() { popup_form.open({ name:'skin', execute_path:'customize.skin', form_name:'SkinForm', controller:function($scope) { $scope.module_list = []; communication.getList('moduleList',{},'customize.skin').then(function(json) { $scope.module_list = json; }); } }).result.then(function(data) { $scope.gridInstance.instance.reloadData(); }); } $scope.sync = function() { communication.api('sync',{}, 'customize.skin').then(function(data) { }) } $scope.delete = function() { var rows = $scope.gridInstance.selections; if(rows.length > 0) { $dialog.confirm({ title:'', message:window.t('LBL_DELETE_SKINS_CONFIRM_MESSAGE') }).result.then(function() { communication.api('deleteItems', {ids:rows},'customize.skin').then(function() { $scope.gridInstance.instance.reloadData(); }); }); } } $scope.RowButtonClickHandler = { edit : function(id) { communication.api('getFormData',{name:'skins', id:id}).then(function(data) { popup_form.open({ name:'skin', data:data, execute_path:'customize.skin', controller:function($scope) { $scope.module_list = []; communication.getList('moduleList',{},'customize.skin').then(function(json) { $scope.module_list = json; }); }, form_name:'SkinForm' }).result.then(function(data) { $scope.gridInstance.instance.reloadData(); }); }) }, }; } });
[+]
..
[-] color.js
[edit]
[-] skin.js
[edit]
[-] general.js
[edit]