接收到当前房间在线人数更新时,自动更新显示

This commit is contained in:
iFish 2014-09-05 20:55:54 +08:00
parent f27fa4bec2
commit f2cfba8d2f

View File

@ -151,6 +151,9 @@
room.onlinecount = d.count;
//更新显示
that.refreshOnlineCount();
//更新显示
$("#chat_server_select li[data-id='" + room.id + "'] span").html("(" + d.count + "人)");
});
port.on("sendMessageFailed", function (e, data) {
that.appendMessageItem(roomStateTemplate({ state: "error", stateIcon: "fa-times", msg: "消息发送失败:" + data, exinfo: "" }));