Fix race condition for fluid layout

This commit is contained in:
calzoneman 2013-05-12 22:13:28 -04:00
parent b98a785740
commit 12c2ef8669

View file

@ -543,11 +543,6 @@ $("#youtube_search").click(function() {
});
});
$("#largelayout").click(largeLayout);
$("#hugelayout").click(hugeLayout);
$("#narrowlayout").click(narrowLayout);
$("#stlayout").click(synchtubeLayout);
function fluidLayout() {
$(".row").each(function() {
$(this).removeClass("row").addClass("row-fluid");
@ -642,6 +637,9 @@ function synchtubeLayout() {
function onYouTubeIframeAPIReady() {
if(!PLAYER)
PLAYER = new Media({id: "", type: "yt"});
if(USEROPTS.layout == "fluid") {
fluidLayout();
}
}
function createCookie(name,value,days) {