when the service is down . the web page should render . and display an empty table.
authorzhouruiyu <zhouruiyu@huawei.com>
Tue, 25 Oct 2016 01:35:31 +0000 (09:35 +0800)
committerzhouruiyu <zhouruiyu@huawei.com>
Tue, 25 Oct 2016 01:35:31 +0000 (09:35 +0800)
https://jira.open-o.org/browse/OCS-125

Change-Id: I96133c618ebe5e38fa38dda5d5b16b30f303c866
Signed-off-by: zhouruiyu <zhouruiyu@huawei.com>
openo-portal/portal-auth/src/main/webapp/user/js/user.js

index 11f2326..9a36522 100644 (file)
@@ -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");
             }
         });