diff options
Diffstat (limited to 'openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/resmgr.js')
-rw-r--r-- | openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/resmgr.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/resmgr.js b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/resmgr.js index a0ad9921..5a6e66cb 100644 --- a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/resmgr.js +++ b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/resmgr.js @@ -3,7 +3,7 @@ function hideFirstCol() { // $('table tr').find('td:eq(0)').hide(); } function deleteLocation(objectId) { - var requestUrl = "/resmgr/rest/openoapi/resmgr/v1/locations/" + objectId; + var requestUrl = app_url+"/openoapi/resmgr/v1/locations/" + objectId; $.ajax({ type: "DELETE", url: requestUrl, @@ -34,7 +34,7 @@ function editLocation(row) { } function loadLocationData() { - var requestUrl = "/resmgr/rest/openoapi/resmgr/v1/locations"; + var requestUrl = app_url+"/openoapi/resmgr/v1/locations"; $.ajax({ type: "GET", url: requestUrl, @@ -146,8 +146,8 @@ $(function () { function () { var formData = JSON.stringify($("#vmAppForm").serializeObject()); var jsonobj = JSON.parse(formData); - var requestUrl = "/resmgr/rest/openoapi/resmgr/v1/locations"; - var requestUrl_query = "/resmgr/rest/openoapi/resmgr/v1/locations"; + var requestUrl = app_url+"/openoapi/resmgr/v1/locations"; + var requestUrl_query = app_url+"/openoapi/resmgr/v1/locations"; if ($('#id').val().length === 0) {//create |