summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ccsdk-app-overlay/src/main/webapp/app/ccsdk/cloudify/blueprint-controllers.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/cloudify/blueprint-controllers.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/cloudify/blueprint-controllers.js
index 51a7409..c764165 100644
--- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/cloudify/blueprint-controllers.js
+++ b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/cloudify/blueprint-controllers.js
@@ -19,9 +19,7 @@
*
* ECOMP is a trademark and service mark of AT&T Intellectual Property.
*******************************************************************************/
-appDS2.controller('blueprintTableController', function(
- $rootScope, $scope, $log, $modal, modalService, BlueprintService) {
-
+appDS2.controller('blueprintTableController', function($rootScope, $scope, $log, $modal, modalService, BlueprintService) {
'use strict';
// Controls logging in this controller
@@ -100,7 +98,7 @@ appDS2.controller('blueprintTableController', function(
}
}
});
- modalInstance.result.then(function(response) {
+ modalInstance.result.then(function() {
// No response.
});
};
@@ -140,7 +138,7 @@ appDS2.controller('blueprintTableController', function(
}
else {
// success, get the updated list.
- $scope.ecdapp.loadTable()
+ $scope.ecdapp.loadTable();
}
}
});
@@ -243,13 +241,13 @@ appDS2.controller('blueprintUploadCtrl', function(
$scope.ecdapp.validateRequest = function(uploadRequest) {
if (uploadRequest == null)
return "No data found.\nPlease enter some values.";
- if (uploadRequest.blueprint_id == null || uploadRequest.blueprint_id.trim() == '')
+ if (uploadRequest.blueprint_id == null || uploadRequest.blueprint_id.trim() === '')
return "ID is required.\nPlease enter a value.";
- if (uploadRequest.blueprint_filename == null || uploadRequest.blueprint_filename.trim() == '')
+ if (uploadRequest.blueprint_filename == null || uploadRequest.blueprint_filename.trim() === '')
return "File name is required.\nPlease enter a value.";
- if (uploadRequest.blueprint_filename.toLowerCase().substr(-4) != 'yaml')
+ if (uploadRequest.blueprint_filename.toLowerCase().substr(-4) !== 'yaml')
return "File name must end with YAML.\nPlease use that suffix.";
- if (uploadRequest.zip_url == null || uploadRequest.zip_url.trim() == '')
+ if (uploadRequest.zip_url == null || uploadRequest.zip_url.trim() === '')
return "Zip file URL is required.\nPlease enter a value.";
return null;
}