Add username bans, tweak ban interface

This commit is contained in:
calzoneman 2013-05-21 12:17:01 -04:00
parent 505c628eb9
commit f8b0b06caf
9 changed files with 311 additions and 73 deletions

View file

@ -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);