Fixes; implement /clear command
This commit is contained in:
parent
4e364f45a6
commit
a5c297365c
6 changed files with 23 additions and 15 deletions
|
|
@ -186,13 +186,6 @@ Callbacks = {
|
|||
},
|
||||
|
||||
channelOpts: function(opts) {
|
||||
$("#opt_qopen_allow_anon").prop("checked", opts.qopen_allow_anon);
|
||||
$("#opt_qopen_allow_guest").prop("checked", opts.qopen_allow_guest);
|
||||
$("#opt_qopen_allow_qnext").prop("checked", opts.qopen_allow_qnext);
|
||||
$("#opt_qopen_allow_move").prop("checked", opts.qopen_allow_move);
|
||||
$("#opt_qopen_allow_delete").prop("checked", opts.qopen_allow_delete);
|
||||
$("#opt_qopen_allow_playnext").prop("checked", opts.qopen_allow_playnext);
|
||||
$("#opt_qopen_temp").prop("checked", opts.qopen_temp);
|
||||
$("#opt_pagetitle").attr("placeholder", opts.pagetitle);
|
||||
document.title = opts.pagetitle;
|
||||
PAGETITLE = opts.pagetitle;
|
||||
|
|
@ -473,6 +466,10 @@ Callbacks = {
|
|||
addChatMessage(data);
|
||||
},
|
||||
|
||||
clearchat: function() {
|
||||
$("#messagebuffer").html("");
|
||||
},
|
||||
|
||||
userlist: function(data) {
|
||||
$(".userlist_item").each(function() { $(this).remove(); });
|
||||
for(var i = 0; i < data.length; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue