diff options
author | 2016-11-02 18:40:59 +0800 | |
---|---|---|
committer | 2016-11-02 18:40:59 +0800 | |
commit | efc5db072006f4b9097d9016994384eb55a1c47a (patch) | |
tree | 3bc78265afa2db85cae00bd15fa472abf8ad6996 /openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/resmgr.js | |
parent | 775c5d44a152d1cd1ef669d10b429a5150296464 (diff) |
FINALFIX
NFVO-39
Change-Id: I799b88f79e8820824321250909166b8fc36c89e0
Signed-off-by: Quan-Zhong <quanzhong@huawei.com>
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 | 13 |
1 files changed, 9 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 5a6e66cb..d499370e 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 @@ -1,6 +1,7 @@ function hideFirstCol() { -// $('table tr').find('th:eq(0)').hide(); -// $('table tr').find('td:eq(0)').hide(); + $('#location_table').bootstrapTable('refresh'); + $('table tr').find('th:eq(0)').hide(); + $('table tr').find('td:eq(0)').hide(); } function deleteLocation(objectId) { var requestUrl = app_url+"/openoapi/resmgr/v1/locations/" + objectId; @@ -14,11 +15,13 @@ function deleteLocation(objectId) { values: [objectId] }); bootbox.alert("Delete successfull !!!"); + hideFirstCol()(); }, error: function (xhr, ajaxOptions, thrownError) { bootbox.alert("Error on deleting data: " + xhr.responseText); } }); + } function editLocation(row) { @@ -45,7 +48,7 @@ function loadLocationData() { striped: true, data: jsonobj.locations }); - $('#location_table').bootstrapTable('refresh'); + hideFirstCol(); }, error: function (xhr, ajaxOptions, thrownError) { @@ -159,7 +162,9 @@ $(function () { data: formData, success: function (jsonResp) { loadLocationData(); - bootbox.alert(jsonResp.msg); + bootbox.alert(jsonResp.msg,function(){ + window.location.reload(); + }); $('#vmAppDialog').removeClass('in').css({ 'display': 'none' }); |