PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
ecommerce
/
catalog
define([], function() { return function($scope, communication,popup_option_set) { $scope.gridInstance={}; $scope.add = function() { popup_option_set.open().result.then(function(data) { $scope.gridOptions.data.push(data); communication.removeList('option_sets'); }); } $scope.delete = function() { var rows = $scope.gridInstance.selections; if(rows.length > 0) { $dialog.confirm({ title:'', message:window.t('LBL_DELETE_OPTION_SETS_CONFIRM_MESSAGE') }).result.then(function() { communication.moduleExecute('deleteItems', {ids:rows},'ecommerce.catalog.optionset').then(function() { $scope.gridInstance.instance.reloadData(); }); }); } } $scope.RowButtonClickHandler = { delete : function(id) { $dialog.confirm({ title:'', message:window.t('LBL_DELETE_OPTION_SET_CONFIRM_MESSAGE') }).result.then(function() { communication.moduleExecute('deleteItem', {id:id},'ecommerce.catalog.optionset').then(function() { $scope.gridInstance.instance.reloadData(); }); }); }, edit : function(id) { communication.moduleExecute('getFormData',{name:'option_sets', id:id}).then(function(data) { popup_option_set.open( { data:data }).result.then(function(data) { $scope.gridInstance.instance.reloadData(); }); }) } }; } });
[+]
..
[-] 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]