aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/controller/previousVersionContoller.js
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/controller/previousVersionContoller.js')
-rw-r--r--vid-app-common/src/main/webapp/app/vid/scripts/controller/previousVersionContoller.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/previousVersionContoller.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/previousVersionContoller.js
new file mode 100644
index 000000000..eb0dac641
--- /dev/null
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/previousVersionContoller.js
@@ -0,0 +1,40 @@
+"use strict";
+
+var previousVersionContoller = function( COMPONENT, FIELD, $scope, $http, $timeout, $log,
+ CreationService, UtilityService, DataService,VIDCONFIGURATION) {
+ $scope.isTableDialogVisible = false;
+ $scope.summaryControl = {};
+ $scope.userProvidedControl = {};
+
+ var callbackFunction = undefined;
+ var componentId = undefined;
+
+ $scope.$on("createTableComponent", function(event, request) {
+
+ $scope.isTableSpinnerVisible = true;
+ $scope.isTableErrorVisible = false;
+ $scope.isTableDialogVisible = true;
+ $scope.popup.isTablePopUpVisible = true;
+ componentId = request.componentId;
+ CreationService.initializeComponent(request.componentId);
+ callbackFunction = request.callbackFunction;
+ CreationService.setHttpErrorHandler(function(response) {
+ showError("System failure", UtilityService
+ .getHttpErrorMessage(response));
+ });
+ $scope.isTableSpinnerVisible = false;
+ });
+
+
+ $scope.cancelTable = function(){
+ $scope.isTableDialogVisible = false;
+ $scope.popup.isTablePopUpVisible = false;
+ }
+
+
+}
+
+app
+ .controller("previousVersionContoller", [ "COMPONENT", "FIELD", "$scope", "$http",
+ "$timeout", "$log", "CreationService", "UtilityService", "DataService","VIDCONFIGURATION",
+ previousVersionContoller ]);