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 {
display: none;
}
.userlist-ignored {
text-decoration: line-through;
}

View File

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