修复部分逻辑问题
This commit is contained in:
parent
94852177f4
commit
c51faf8a88
@ -76,7 +76,7 @@
|
|||||||
(function ui() {
|
(function ui() {
|
||||||
$("#chat_float_tip").click(showServerList);
|
$("#chat_float_tip").click(showServerList);
|
||||||
})();
|
})();
|
||||||
|
servernode.loadServers();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
servernode.loadServers();
|
servernode.loadServers();
|
||||||
}, 1000 * 60 * 11);
|
}, 1000 * 60 * 11);
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
$("#index-tip-body").find(".order-num").html("0").hide();
|
$("#index-tip-body").find(".order-num").html("0").hide();
|
||||||
//取最新的几条通知
|
//取最新的几条通知
|
||||||
var shownNotice = _.first(savedNotice.items, data.sysNoticeMaxShowCount);
|
var shownNotice = _.first(savedNotice.items, data.sysNoticeMaxShowCount);
|
||||||
if (!shownNotice.length) {
|
if (!shownNotice || !shownNotice.length) {
|
||||||
shownNotice = [{ title: "暂时没有系统公告" }];
|
shownNotice = [{ title: "暂时没有系统公告" }];
|
||||||
}
|
}
|
||||||
$(".search-tips-container").html(noticeTemplate(shownNotice));
|
$(".search-tips-container").html(noticeTemplate(shownNotice));
|
||||||
|
Loading…
Reference in New Issue
Block a user