Added show/hide for kick and modes

This commit is contained in:
Mattias Erming 2014-04-08 16:18:06 +02:00
parent 87d1883eda
commit d6b7a5331a
3 changed files with 10 additions and 4 deletions

View File

@ -105,14 +105,18 @@ h2 {
#chat .join,
#chat .part,
#chat .nick,
#chat .quit {
#chat .quit,
#chat .mode,
#chat .kick {
/* Hidden by default */
display: none;
}
#chat.show-join .join,
#chat.show-part .part,
#chat.show-nick .nick,
#chat.show-quit .quit {
#chat.show-quit .quit,
#chat.show-mode .mode,
#chat.show-kick .kick {
display: block;
}
#chat .window {

View File

@ -38,6 +38,8 @@
<input type="checkbox" value="part"/>
<input type="checkbox" value="nick"/>
<input type="checkbox" value="quit"/>
<input type="checkbox" value="mode"/>
<input type="checkbox" value="kick"/>
</div>
</div>
</div>

View File

@ -25,10 +25,10 @@ $(function() {
event(type, json);
});
});
var chat = $("#chat");
var sidebar = $("#sidebar");
var tpl = [];
function render(id, json, partials) {
tpl[id] = tpl[id] || $(id).html();