Add ability to kick clients
This commit is contained in:
parent
1a88c9e27e
commit
7aafcd7b08
3 changed files with 31 additions and 0 deletions
|
|
@ -65,6 +65,15 @@ function addUserDropdown(entry, name) {
|
|||
});
|
||||
});
|
||||
|
||||
var kick = $('<li />').appendTo(ul);
|
||||
var a = $('<a />').attr("tabindex", "-1").attr("href", "#").appendTo(kick);
|
||||
a.text("Kick");
|
||||
a.click(function() {
|
||||
socket.emit('chatMsg', {
|
||||
msg: "/kick " + name
|
||||
});
|
||||
});
|
||||
|
||||
$('<li />').addClass("divider").appendTo(ul);
|
||||
|
||||
var promote = $('<li />').appendTo(ul);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue