This commit is contained in:
Calvin Montgomery 2019-02-23 21:23:21 -08:00
parent c6f9b1611e
commit 367df3d70b
3 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.63.2", "version": "3.63.3",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },

View File

@ -41,7 +41,6 @@ var socket = {
console.log(arguments); console.log(arguments);
} }
}; };
var IGNORED = [];
var CHATHIST = []; var CHATHIST = [];
var CHATHISTIDX = 0; var CHATHISTIDX = 0;
var CHATTHROTTLE = false; var CHATTHROTTLE = false;
@ -110,6 +109,8 @@ function getOrDefault(k, def) {
return v; return v;
} }
var IGNORED = getOrDefault("ignorelist", []);
var USEROPTS = { var USEROPTS = {
theme : getOrDefault("theme", DEFAULT_THEME), // Set in head template theme : getOrDefault("theme", DEFAULT_THEME), // Set in head template
layout : getOrDefault("layout", "fluid"), layout : getOrDefault("layout", "fluid"),

View File

@ -226,6 +226,7 @@ function addUserDropdown(entry) {
IGNORED.splice(IGNORED.indexOf(name), 1); IGNORED.splice(IGNORED.indexOf(name), 1);
entry.removeClass("userlist-ignored"); entry.removeClass("userlist-ignored");
} }
setOpt("ignorelist", IGNORED);
}); });
if(IGNORED.indexOf(name) == -1) { if(IGNORED.indexOf(name) == -1) {
entry.removeClass("userlist-ignored"); entry.removeClass("userlist-ignored");