diff --git a/www/assets/js/util.js b/www/assets/js/util.js
index 499ebee2..f4f48253 100644
--- a/www/assets/js/util.js
+++ b/www/assets/js/util.js
@@ -121,6 +121,24 @@ function addUserDropdown(entry, name) {
$("").text(name).appendTo(menu);
$("
").appendTo(menu);
+ var ignore = $("").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")) {
$("").addClass("btn btn-mini btn-block")
.text("Kick")