Fix synchtube layout, add placeholder text, fix alignment issue

This commit is contained in:
calzoneman 2013-04-28 13:48:22 -05:00
parent 406988aef1
commit 4bdbac3dbd
3 changed files with 14 additions and 12 deletions

View file

@ -532,6 +532,7 @@ function narrowLayout() {
function synchtubeLayout() {
$("#videodiv").detach().insertBefore($("#chatdiv"));
$("#queuediv").detach().prependTo($("#queuerow"));
}
function onYouTubeIframeAPIReady() {

View file

@ -973,8 +973,13 @@ function showUserOpts() {
.appendTo(layoutselect);
$("<option/>").attr("value", "single").text("Single Column")
.appendTo(layoutselect);
$("<option/>").attr("value", "synchtube").text("Synchtube")
.appendTo(layoutselect);
layoutselect.val(USEROPTS.layout);
addOption("Layout", layoutselect);
var warn = $("<p/>").addClass("text-error")
.text("Changing layouts may require a refresh")
addOption("", warn);
var synchcontainer = $("<label/>").addClass("checkbox")
.text("Synchronize Media");
@ -1051,6 +1056,9 @@ function applyOpts() {
case "single":
singleColumnLayout();
break;
case "synchtube":
synchtubeLayout();
break;
default:
break;
}