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