Add fluid layout option

This commit is contained in:
calzoneman 2013-05-12 21:15:05 -04:00
parent b00e63b622
commit c7e63391f6
3 changed files with 31 additions and 2 deletions

View file

@ -849,6 +849,8 @@ function showUserOpts() {
.appendTo(layoutselect);
$("<option/>").attr("value", "synchtube").text("Synchtube")
.appendTo(layoutselect);
$("<option/>").attr("value", "fluid").text("Fluid")
.appendTo(layoutselect);
layoutselect.val(USEROPTS.layout);
addOption("Layout", layoutselect);
var warn = $("<p/>").addClass("text-error")
@ -926,12 +928,12 @@ function showUserOpts() {
USEROPTS.modhat = modhat.prop("checked");
}
saveOpts();
applyOpts();
modal.modal("hide");
});
modal.on("hidden", function() {
vid.appendTo($("#videodiv"));
applyOpts();
modal.remove();
});
modal.modal();
@ -975,6 +977,9 @@ function applyOpts() {
case "synchtube":
synchtubeLayout();
break;
case "fluid":
fluidLayout();
break;
default:
break;
}