aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhouruiyu <zhouruiyu@huawei.com>2016-10-25 09:35:31 +0800
committerzhouruiyu <zhouruiyu@huawei.com>2016-10-25 09:35:31 +0800
commitbba44180da3f50d09ce2c41c1813e3c9469a0c1c (patch)
tree404c110d2b1b4578e310869c83d93f63a8b301a9
parent30908ad02cf5255b70fea074b5830feffd4f8cd4 (diff)
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 <zhouruiyu@huawei.com>
-rw-r--r--openo-portal/portal-auth/src/main/webapp/user/js/user.js8
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");
}
});