PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
ecommerce
/
catalog
define([], function() { return function($scope, communication, popup_review,$dialog) { $scope.gridInstance={}; $scope.add = function() { popup_review.open().result.then(function(data) { $scope.gridInstance.instance.reloadData(); }); } $scope.filters = {}; $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},'ecommerce.catalog.review').then(function() { $scope.gridInstance.instance.reloadData(); }); }); } } $scope.RowButtonClickHandler = { edit : function(id) { communication.api('getFormData',{name:'productReview', id:id}).then(function(data) { popup_review.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]