Rework UI
[clamp.git] / src / main / resources / META-INF / resources / designer / scripts / ImportSchemaCtrl.js
index 7fb0f44..5dae2dc 100644 (file)
@@ -281,4 +281,16 @@ function($scope, $rootScope, $uibModalInstance, data, svnservice, fileUpload,
                        // $scope.name = 'You did not enter in your name!';
                });
        };
+
+       $scope.submitForm = function(obj) {
+               var operationalPolicies = getOperationalPolicies();
+               if (obj !== null) {
+                       operationalPolicies[0]["configurationsJson"] = obj;
+               }
+               svnservice.saveOpPolicyProperties(operationalPolicies).then(function(pars) {
+                       updateOpPolicyProperties(operationalPolicies);
+               }, function(data) {
+               });
+     };
+
 } ]);
\ No newline at end of file