Fix synchtube layout, add placeholder text, fix alignment issue
This commit is contained in:
parent
406988aef1
commit
4bdbac3dbd
3 changed files with 14 additions and 12 deletions
|
|
@ -532,6 +532,7 @@ function narrowLayout() {
|
|||
|
||||
function synchtubeLayout() {
|
||||
$("#videodiv").detach().insertBefore($("#chatdiv"));
|
||||
$("#queuediv").detach().prependTo($("#queuerow"));
|
||||
}
|
||||
|
||||
function onYouTubeIframeAPIReady() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue