From: anushadasari Date: Tue, 3 Sep 2019 06:53:24 +0000 (+0530) Subject: Semicolon at the end of the Statement and Remove trailing whitespaces at the end... X-Git-Tag: 5.0.3~17^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=36d7a4aeb15346c8f85ed694a1d54d81c7cc50e2;p=vid.git 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 --- 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",