Add userlist-ignored strikethrough for ignored users
This commit is contained in:
parent
8c9622f1b2
commit
3620b07816
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue