From bba44180da3f50d09ce2c41c1813e3c9469a0c1c Mon Sep 17 00:00:00 2001 From: zhouruiyu Date: Tue, 25 Oct 2016 09:35:31 +0800 Subject: when the service is down . the web page should render . and display an empty table. https://jira.open-o.org/browse/OCS-125 Change-Id: I96133c618ebe5e38fa38dda5d5b16b30f303c866 Signed-off-by: zhouruiyu --- openo-portal/portal-auth/src/main/webapp/user/js/user.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openo-portal') 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("" + JSON.parse(data.responseText).error.message + ""); + } 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"); } }); -- cgit 1.2.3-korg