From 36d7a4aeb15346c8f85ed694a1d54d81c7cc50e2 Mon Sep 17 00:00:00 2001 From: anushadasari Date: Tue, 3 Sep 2019 12:23:24 +0530 Subject: Semicolon at the end of the Statement and Remove trailing whitespaces at the end of this line In JavaScript, the semicolon (;) is optional as a statement separator, but omitting semicolons can be confusing, and lead to unexpected results because a semicolon is implicitly inserted at the end of each line. Issue-ID: VID-606 Change-Id: Ic6daf9162504a2296a7e2cf48f08e60cabe14b21 Signed-off-by: anushadasari --- .../vid/scripts/controller/statusDialogController.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'vid-app-common/src/main') diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/statusDialogController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/statusDialogController.js index 4562a9de6..47fa26996 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/statusDialogController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/statusDialogController.js @@ -87,7 +87,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout, $scope.userParameterChanged = function(id) { StatusService.updateUserParameterList(id, $scope.userProvidedControl); - } + }; /*$scope.submit = function() { @@ -140,9 +140,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout, $scope.isSubmitEnabled = false; $scope.isCancelEnabled = false; - } - - + }; $scope.handleInitialResponse = function(response) { try { @@ -165,7 +163,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout, } catch (error) { $scope.showContentError(error); } - } + }; /* $scope.setVnfProvStatus = function(vnfId, targetProvStatus) { @@ -193,7 +191,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout, $scope.isDialogVisible = false; $scope.popup.isVisible = false; runCallback(false); - } + }; var runCallback = function(response) { if (angular.isFunction(callbackFunction)) { @@ -203,7 +201,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout, instanceId : response.instanceId }); } - } + }; var showSuccess = function(summary, details) { var message = summary; @@ -213,7 +211,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout, $scope.isSpinnerVisible = false; $scope.isSuccessVisible = true; $scope.success = message; - } + }; var showError = function(summary, details) { var message = summary; @@ -223,8 +221,8 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout, $scope.isSpinnerVisible = false; $scope.isErrorVisible = true; $scope.error = message; - } -} + }; +}; appDS2.controller("statusDialogController", [ "COMPONENT", "FIELD", "$scope", "$http", "$timeout", "$log", "MsoService", "StatusService", "DataService", "PropertyService", "UtilityService", -- cgit 1.2.3-korg