aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-01-21 08:59:08 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-21 08:59:08 +0000
commit974fc96fdc47cafb6f7169d197e69cb81e6df4a9 (patch)
treea26a1a78f344ef24b1dd78a46a0370078bf78be6 /vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
parenteb1659273043b496ed93dc369db1c9311ac0ca49 (diff)
parenta09162b81f23cd295d7bd6481398993faa8dfdeb (diff)
Merge "replaced named func with anonymous func"
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
index ec4799b14..bb3acad1b 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
@@ -3,6 +3,7 @@
* VID
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019 IBM.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -197,7 +198,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
console.log("Instantiating ASDC service " + service.uuid);
$http.get('rest/models/services/' + service.uuid)
- .then(function successCallback(getServiceResponse) {
+ .then(function (getServiceResponse) {
getServiceResponse.data['service'].serviceTypeName = $scope.serviceTypeName;
getServiceResponse.data['service'].createSubscriberName = $scope.createSubscriberName;
var serviceModel = getServiceResponse.data;
@@ -278,7 +279,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
}
});
- }, function errorCallback(response) {
+ }, function (response) {
$log.error("Error: ", response);
});
};
@@ -661,7 +662,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
return $http({
method: 'GET',
url: pathQuery
- }).then(function successCallback(response) {
+ }).then(function (response) {
if (response.headers()['content-type'].includes('json')) {
vidService.setModel(response.data);
console.log("aaiSubscriber getAsdcModel DONE!!!!");
@@ -696,10 +697,10 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
$scope.getTenants = function (globalCustomerId) {
$http.get(FIELD.ID.AAI_GET_TENTANTS + globalCustomerId)
- .then(function successCallback(response) {
+ .then(function (response) {
return response.data;
//$location.path("/instantiate");
- }, function errorCallback(response) {
+ }, function (response) {
//TODO
});
}