Theme fixes; layout fixes; limit channel registrations

This commit is contained in:
calzoneman 2014-02-06 10:37:00 -06:00
parent 07feb91cc6
commit 359a228d5f
10 changed files with 110 additions and 38 deletions

View file

@ -485,7 +485,6 @@ $("#cs-chanranks-owner").click(chanrankSubmit.bind(this, 4));
$(".plcontrol-collapse").collapse("hide");
$("#plcontrol button.active").button("toggle");
if (!wasActive) {
console.log($(id)[0].className);
$(id).button("toggle");
}
});

View file

@ -671,9 +671,8 @@ function applyOpts() {
if(USEROPTS.hidevid) {
$("#qualitywrap").html("");
$("#videowrap").remove();
removeVideo();
$("#chatwrap").removeClass("col-lg-5 col-md-5").addClass("col-lg-12 col-md-12");
$("#chatline").removeClass().addClass("col-lg-12 col-md-12 form-control");
}
$("#chatbtn").remove();
@ -1442,14 +1441,13 @@ function hdLayout() {
$("#mainpage").css("padding-top", "0");
$("body").addClass("hd");
setTimeout(resizeStuff, 500);
}
function chatOnly() {
//fluidLayout();
$("#toprow").remove()
$("#announcements").remove();
$("#playlistrow").remove();
$("#videowrap").remove();
removeVideo();
$("#controlsrow").remove();
$("#chatwrap").removeClass("col-lg-5 col-md-5").addClass("col-lg-12 col-md-12");
}
@ -1460,7 +1458,7 @@ function resizeStuff() {
$("#ytapiplayer").width(VWIDTH).height(VHEIGHT);
// Only execute if we are on a fluid layout
if ($("body").hasClass("fluid")) {
if (!$("body").hasClass("fluid")) {
return;
}
@ -1471,6 +1469,18 @@ function resizeStuff() {
$(window).resize(resizeStuff);
function removeVideo() {
try {
PLAYER.setVolume(0);
if (PLAYER.type === "rv") {
$(PLAYER.player).remove();
}
} catch (e) {
}
$("#videowrap").remove();
}
/* channel administration stuff */
function genPermissionsEditor() {