diff options
author | jin xin <j00101220@huawei.com> | 2016-10-25 01:57:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2016-10-25 01:57:03 +0000 |
commit | e295da13e7de9c52017c21f112d4fba57bd78f47 (patch) | |
tree | 4381c8a5fcc0bc52e74a4e0d512c86b0013dc9dd /openo-portal | |
parent | 47ad735126bbec93ca5613437959b5c611f9c4d4 (diff) | |
parent | bba44180da3f50d09ce2c41c1813e3c9469a0c1c (diff) |
Merge "when the service is down . the web page should render . and display an empty table." into sun
Diffstat (limited to 'openo-portal')
-rw-r--r-- | openo-portal/portal-auth/src/main/webapp/user/js/user.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openo-portal/portal-auth/src/main/webapp/user/js/user.js b/openo-portal/portal-auth/src/main/webapp/user/js/user.js index 11f2326c..9a36522f 100644 --- a/openo-portal/portal-auth/src/main/webapp/user/js/user.js +++ b/openo-portal/portal-auth/src/main/webapp/user/js/user.js @@ -32,6 +32,14 @@ $(document).ready(function() { }).error(function(data) { if (data.status == 403) { $(".hw_body").html("<span style='font-size:20px;'>" + JSON.parse(data.responseText).error.message + "</span>"); + } else { + var userListHeader = [ + { title: "User", data: "User",width: "20%"}, + { title: "Description", data: "Description",width: "60%"}, + { title: "Operations", data: "Operations",width: "20%"} + ]; + Table.create("", "table_id", userListHeader); + $(".hw_body").css("visibility", "visible"); } }); |