Added show/hide for kick and modes
This commit is contained in:
parent
87d1883eda
commit
d6b7a5331a
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue