Added user count
This commit is contained in:
parent
0c20e29c41
commit
738c61350e
|
@ -189,8 +189,11 @@ h2 {
|
|||
top: 0;
|
||||
width: 160px;
|
||||
}
|
||||
#chat .users .count {
|
||||
color: #bbb;
|
||||
padding: 0 8px;
|
||||
}
|
||||
#chat .users .user {
|
||||
display: block;
|
||||
padding: 0 8px;
|
||||
}
|
||||
#chat .messages {
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<input type="checkbox" value="nick"/>
|
||||
<input type="checkbox" value="quit"/>
|
||||
<input type="checkbox" value="mode"/>
|
||||
<input type="checkbox" value="kick"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -97,6 +98,9 @@
|
|||
{{/channels}}
|
||||
</script>
|
||||
<script type="text/html" id="user">
|
||||
<div class="count">
|
||||
Users: {{users.length}}
|
||||
</div>
|
||||
{{#users}}
|
||||
<div class="user">
|
||||
{{name}}
|
||||
|
|
|
@ -123,12 +123,7 @@ $(function() {
|
|||
break;
|
||||
|
||||
case "user":
|
||||
var target = chat.find("#window-" + json.target);
|
||||
if (target.size() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
target = target.find(".users");
|
||||
var target = chat.find("#window-" + json.target).find(".users");
|
||||
target.html(render("#user", {users: json.data}));
|
||||
break;
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f992e474d7ad7a79b129c289fb744c2522a99e8c
|
||||
Subproject commit 3cab2d2011e20d5cd2492e901cf029dbbff16006
|
Loading…
Reference in New Issue