Add button to show/hide userlist

This commit is contained in:
calzoneman 2013-06-06 13:53:10 -04:00
parent 685358b0d8
commit 2c069c26b3
3 changed files with 26 additions and 2 deletions

View file

@ -149,6 +149,18 @@ if(!USEROPTS.hidevid) {
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
}
$("#ulistchevron").click(function() {
var state = $("#userlist").css("display");
if(state == "none") {
$("#userlist").show();
$("#ulistchevron").removeClass().addClass("icon-chevron-up");
}
else {
$("#userlist").hide();
$("#ulistchevron").removeClass().addClass("icon-chevron-down");
}
});
var sendVideoUpdate = function() { }
setInterval(function() {
sendVideoUpdate();