diff options
author | jin xin <j00101220@huawei.com> | 2016-11-02 08:09:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2016-11-02 08:09:38 +0000 |
commit | d22723dc36e98fdb50f079d663955dd579ea13ce (patch) | |
tree | b1a0b14fad7f3317da80703022489aab04aedfca | |
parent | 60597c40035614d8b62e112b278c7526fa1a3a4d (diff) | |
parent | c8356a715a64b92001b7c815eb1b08b908004c8d (diff) |
Merge "fix datacenter.js NFVO-39" into sun
3 files changed, 7 insertions, 10 deletions
diff --git a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/conf/globalconfig.json b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/conf/globalconfig.json index 367b974d..9df8207a 100644 --- a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/conf/globalconfig.json +++ b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/conf/globalconfig.json @@ -1,5 +1,3 @@ { - "url": "http://192.168.233.226", - "port": "80", - "context_name":"" + "url": "http://127.0.0.1:8080/resmgr" }
\ No newline at end of file diff --git a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/datacenter.js b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/datacenter.js index a861165a..3a74ce10 100644 --- a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/datacenter.js +++ b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/datacenter.js @@ -227,12 +227,11 @@ $(function () { type: "GET", url: requestUrl, contentType: "application/json", - success: function (jsonobj) { - $.each(jsonobj.data, function (n, v) { - htmlContent += "<option value='" + v + "'>" + v + "</option>"; - $("#location").html(htmlContent); - - }); + success: function (jsonobj) {var str = jsonobj.data.replace('[', '').replace(']', '').split(',') + $.each(str, function (n, v) { + htmlContent += "<option value='" + v + "'>" + v + "</option>"; + $("#location").html(htmlContent); + }); }, error: function (xhr, ajaxOptions, thrownError) { diff --git a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/gconf.js b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/gconf.js index bf8f829c..06814d15 100644 --- a/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/gconf.js +++ b/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/gconf.js @@ -22,7 +22,7 @@ function getUrl(){ async:false, dataType:"json", success:function(jsonData) { - url = jsonData.url + ":" + jsonData.port +jsonData.context_name; + url = jsonData.url; console.log("url = " + url); } }); |