PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
ecommerce
/
configuration
define([], function() { return function($scope, communication, uiTabEditing_helper) { communication.getList('zones',{}).then(function(json) { $scope.zone_list = json; }) $scope.tabEditList = []; $scope.add = function(type,name) { if(angular.isDefined($scope.tabEditList)) { $scope.tabEditList.push({ name:name, type:type }); } } $scope.templateUrl = function(item) { return 'ecommerce/configuration/payment/methods/' + item.type; } $scope.dynamicCtrl = function(item) { return 'editor/ecommerce/configuration/payment/methods/' + item.type; } $scope.save = function() { // console.log($scope.tabEditList); // return; if(!$scope.form.$valid) return; communication.moduleExecute('saveForm',{data:$scope.tabEditList},'ecommerce.configuration.payment').then(function(json) { //map new id uiTabEditing_helper.mapProperty(json, $scope.tabEditList,'id'); console.log($scope.tabEditList); $scope.saved = true; }); } } });
[+]
..
[-] payment - Copy.js
[edit]
[-] zone.js
[edit]
[-] currency.js
[edit]
[-] tax.js
[edit]
[-] currency - Copy.js
[edit]
[+]
currency
[-] shipping.js
[edit]
[-] general.js
[edit]
[+]
shipping
[-] system.js
[edit]
[-] mail.js
[edit]
[-] zone - Copy.js
[edit]
[+]
zone
[-] payment.js
[edit]
[+]
payment
[+]
tax