Remove ignore button from self (#904)
This commit is contained in:
parent
56b4ec8f3a
commit
05107ce13f
|
@ -2,7 +2,7 @@
|
|||
"author": "Calvin Montgomery",
|
||||
"name": "CyTube",
|
||||
"description": "Online media synchronizer and chat",
|
||||
"version": "3.76.0",
|
||||
"version": "3.76.1",
|
||||
"repository": {
|
||||
"url": "http://github.com/calzoneman/sync"
|
||||
},
|
||||
|
|
|
@ -214,26 +214,28 @@ function addUserDropdown(entry) {
|
|||
var btngroup = $("<div/>").addClass("btn-group-vertical").appendTo(menu);
|
||||
|
||||
/* ignore button */
|
||||
var ignore = $("<button/>").addClass("btn btn-xs btn-default")
|
||||
.appendTo(btngroup)
|
||||
.click(function () {
|
||||
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");
|
||||
}
|
||||
setOpt("ignorelist", IGNORED);
|
||||
});
|
||||
if(IGNORED.indexOf(name) == -1) {
|
||||
entry.removeClass("userlist-ignored");
|
||||
ignore.text("Ignore User");
|
||||
} else {
|
||||
entry.addClass("userlist-ignored");
|
||||
ignore.text("Unignore User");
|
||||
if (name !== CLIENT.name) {
|
||||
var ignore = $("<button/>").addClass("btn btn-xs btn-default")
|
||||
.appendTo(btngroup)
|
||||
.click(function () {
|
||||
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");
|
||||
}
|
||||
setOpt("ignorelist", IGNORED);
|
||||
});
|
||||
if(IGNORED.indexOf(name) == -1) {
|
||||
entry.removeClass("userlist-ignored");
|
||||
ignore.text("Ignore User");
|
||||
} else {
|
||||
entry.addClass("userlist-ignored");
|
||||
ignore.text("Unignore User");
|
||||
}
|
||||
}
|
||||
|
||||
/* pm button */
|
||||
|
|
Loading…
Reference in a new issue