Add userlist-ignored strikethrough for ignored users

This commit is contained in:
Calvin Montgomery 2018-11-15 22:44:21 -08:00
parent 8c9622f1b2
commit 3620b07816
2 changed files with 8 additions and 0 deletions

View File

@ -688,3 +688,7 @@ input#logout[type="submit"]:hover {
body.hd #resize-video-larger, body.hd #resize-video-smaller { body.hd #resize-video-larger, body.hd #resize-video-smaller {
display: none; display: none;
} }
.userlist-ignored {
text-decoration: line-through;
}

View File

@ -220,14 +220,18 @@ function addUserDropdown(entry) {
if(IGNORED.indexOf(name) == -1) { if(IGNORED.indexOf(name) == -1) {
ignore.text("Unignore User"); ignore.text("Unignore User");
IGNORED.push(name); IGNORED.push(name);
entry.addClass("userlist-ignored");
} else { } else {
ignore.text("Ignore User"); ignore.text("Ignore User");
IGNORED.splice(IGNORED.indexOf(name), 1); IGNORED.splice(IGNORED.indexOf(name), 1);
entry.removeClass("userlist-ignored");
} }
}); });
if(IGNORED.indexOf(name) == -1) { if(IGNORED.indexOf(name) == -1) {
entry.removeClass("userlist-ignored");
ignore.text("Ignore User"); ignore.text("Ignore User");
} else { } else {
entry.addClass("userlist-ignored");
ignore.text("Unignore User"); ignore.text("Unignore User");
} }