summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/src
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2016-09-27 19:45:47 +0800
committerLuji7 <lu.ji3@zte.com.cn>2016-09-27 19:45:47 +0800
commit81a1b0680b6db10cf1a6fb914703a56af7f4227c (patch)
tree57932100177c5b156b9aed6e38da8837da3df411 /openo-portal/portal-lifecyclemgr/src
parent7c4514d661177fd78ed528622a9ae796ade28a5e (diff)
use jquery promise api instead of synchroize ajax invocation
Change-Id: I776069e9f7b87da6b7840f90507b67152e4c0272 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/src')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
index d78ef378..54be02b1 100644
--- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
+++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
@@ -110,13 +110,13 @@ function fetchServiceTemplateBy(templateId) {
function renderTemplateParametersTab() {
$.when(
fetchTemplateParameterDefinitions(templateParameters),
- fetchVimInfo2()
+ fetchVimInfo()
).then(function(templateParameterResponse, vimsInfoResponse) {
templateParameters = translateToTemplateParameters(templateParameterResponse[0].inputs);
var vims = translateToVimInfo(vimsInfoResponse[0]);
var components = transfromToComponents(templateParameters.parameters, vims);
document.getElementById("parameterTab").innerHTML = components;
- })
+ });
}
function fetchTemplateParameterDefinitions(parameters) {
@@ -128,7 +128,7 @@ function fetchTemplateParameterDefinitions(parameters) {
});
}
-function fetchVimInfo2() {
+function fetchVimInfo() {
var vimQueryUri = 'http://localhost:8080/openoapi/extsys/v1/vims';
return $.ajax({
type: "GET",