add back ignore function

This commit is contained in:
calzoneman 2013-06-25 10:06:01 -04:00
parent 11e91d02fb
commit 259d7470e1
1 changed files with 18 additions and 0 deletions

View File

@ -121,6 +121,24 @@ function addUserDropdown(entry, name) {
$("<strong/>").text(name).appendTo(menu);
$("<br/>").appendTo(menu);
var ignore = $("<button/>").addClass("btn btn-mini btn-block")
.appendTo(menu);
ignore.click(function() {
if(IGNORED.indexOf(name) == -1) {
ignore.text("Unignore User");
IGNORED.push(name);
}
else {
ignore.text("Ignore User");
IGNORED.splice(IGNORED.indexOf(name), 1);
}
});
if(IGNORED.indexOf(name) == -1) {
ignore.text("Ignore User");
}
else {
ignore.text("Unignore User");
}
if(hasPermission("kick")) {
$("<button/>").addClass("btn btn-mini btn-block")
.text("Kick")