From c51faf8a8815f944662e674272f60b800d1ba2fb Mon Sep 17 00:00:00 2001 From: iFish Date: Fri, 5 Sep 2014 18:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web12306/js/ui/chat/chatframe.js | 2 +- Web12306/js/ui/ui-sysnotice.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Web12306/js/ui/chat/chatframe.js b/Web12306/js/ui/chat/chatframe.js index b78713f..d9ad7ba 100644 --- a/Web12306/js/ui/chat/chatframe.js +++ b/Web12306/js/ui/chat/chatframe.js @@ -76,7 +76,7 @@ (function ui() { $("#chat_float_tip").click(showServerList); })(); - + servernode.loadServers(); setTimeout(function() { servernode.loadServers(); }, 1000 * 60 * 11); diff --git a/Web12306/js/ui/ui-sysnotice.js b/Web12306/js/ui/ui-sysnotice.js index fb9fc60..b7d740c 100644 --- a/Web12306/js/ui/ui-sysnotice.js +++ b/Web12306/js/ui/ui-sysnotice.js @@ -40,7 +40,7 @@ $("#index-tip-body").find(".order-num").html("0").hide(); //取最新的几条通知 var shownNotice = _.first(savedNotice.items, data.sysNoticeMaxShowCount); - if (!shownNotice.length) { + if (!shownNotice || !shownNotice.length) { shownNotice = [{ title: "暂时没有系统公告" }]; } $(".search-tips-container").html(noticeTemplate(shownNotice));