12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- var KisBpmConditionExpressionCtrl = [ '$scope', '$modal', function($scope, $modal) {
-
- var opts = {
- template: 'editor-app/configuration/properties/condition-expression-popup.html?version=' + Date.now(),
- scope: $scope
- };
-
- $modal(opts);
- }];
- var KisBpmConditionExpressionPopupCtrl = [ '$scope', '$translate', '$http', function($scope, $translate, $http) {
-
- if ($scope.property.value !== undefined && $scope.property.value !== null) {
- $scope.conditionExpression = {value: $scope.property.value};
-
- } else {
- $scope.conditionExpression = {value: ''};
- }
-
- $scope.save = function() {
- $scope.property.value = $scope.conditionExpression.value;
- $scope.updatePropertyInModel($scope.property);
- $scope.close();
- };
-
- $scope.close = function() {
- $scope.property.mode = 'read';
- $scope.$hide();
- };
- }];
|