mirror of https://github.com/calzoneman/sync.git
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 {
|
body.hd #resize-video-larger, body.hd #resize-video-smaller {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.userlist-ignored {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue