PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.2.2
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.2.2
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / frontend / src / common / mapping / mapping.controller.js
wp-all-export / frontend / src / common / mapping Last commit date
mapping.controller.js 7 years ago mapping.directive.js 7 years ago mapping.scss 7 years ago mapping.tpl.html 7 years ago
mapping.controller.js
34 lines
1 GoogleMerchants.controller('mappingController', ['$scope', function($scope){
2
3 $scope.show = false;
4
5 $scope.mappingsBackup = null;
6
7 $scope.removeMapping = function(mapping) {
8
9 if($scope.mappings.length > 1) {
10 $scope.mappings.splice($scope.mappings.indexOf(mapping), 1);
11 }
12 };
13
14 $scope.$watch('show', function(newValue){
15 // If we show it, backup the current mappings in case cancel is pressed
16 if(newValue) {
17 $scope.mappingsBackup = $scope.mappings;
18 }
19 });
20 $scope.addMapping = function() {
21 $scope.mappings.push({});
22 };
23
24 $scope.close = function() {
25 // Restore mappings
26 $scope.mappings = $scope.mappingsBackup;
27 $scope.show = false;
28 };
29
30 $scope.saveMappings = function() {
31 $scope.show = false;
32 };
33
34 }]);