From 5762404814e1b3ab6730da1f8bdf6b28065cf874 Mon Sep 17 00:00:00 2001 From: Luji7 Date: Wed, 28 Sep 2016 11:53:03 +0800 Subject: Fix bug, alert serviceInstance is undefined after creating service instance Change-Id: I6bb3120e2ef16614e304a6fdab68af691a58c87e Signed-off-by: Luji7 --- .../src/main/webapp/lifecyclemgr/js/gsolcm.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openo-portal/portal-lifecyclemgr') 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 a47ee74e..08f257de 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 @@ -40,7 +40,7 @@ lcmHandler.prototype = { serviceParameters: collectServiceParameters(templateParameters), vimLocation: $('#vim_location').val() } - var gatewayService = '/openoapi/servicegateway/v1/services'; + var gatewayService = 'http://localhost:8080/openoapi/servicegateway/v1/services'; var serviceTemplate = fetchServiceTemplateBy(serviceInstance.serviceTemplateId); if (serviceTemplate === undefined) { return; @@ -69,7 +69,7 @@ function collectServiceParameters(parameters) { } function fetchServiceTemplateBy(templateId) { - var serviceTemplateUri = '/openoapi/catalog/v1/servicetemplates/' + templateId; + var serviceTemplateUri = 'http://localhost:8080/openoapi/catalog/v1/servicetemplates/' + templateId; var template; $.ajax({ type: "GET", @@ -90,7 +90,7 @@ function fetchServiceTemplateBy(templateId) { if (template === undefined) { return template; } - var queryCsarUri = '/openoapi/catalog/v1/csars/' + template.gsarId; + var queryCsarUri = 'http://localhost:8080/openoapi/catalog/v1/csars/' + template.gsarId; $.ajax({ type: "GET", async: false, @@ -320,11 +320,11 @@ function createSdnoServiceInstance(gatewayService, serviceInstance) { } function updateTable(serviceInstance) { - appendOenRow(); + appendOenRow(serviceInstance); addDeleteEventRegistration(); } -function appendOenRow() { +function appendOenRow(serviceInstance) { var index = service_instance_insert_index; var creator = ''; $('#sai').append(''); -- cgit 1.2.3-korg