Add username bans, tweak ban interface
This commit is contained in:
parent
505c628eb9
commit
f8b0b06caf
9 changed files with 311 additions and 73 deletions
|
|
@ -132,6 +132,15 @@ function addUserDropdown(entry, name) {
|
|||
});
|
||||
});
|
||||
|
||||
var nameban = $("<li />").appendTo(ul);
|
||||
var a = $("<a />").attr("tabindex", "-1").attr("href", "javascript:void(0);").appendTo(nameban);
|
||||
a.text("Name Ban");
|
||||
a.click(function() {
|
||||
socket.emit("banName", {
|
||||
name: name
|
||||
});
|
||||
});
|
||||
|
||||
$("<li />").addClass("divider").appendTo(ul);
|
||||
|
||||
var promote = $("<li />").appendTo(ul);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue