From 12c2ef86690b60bf0f6d2953e63bd1860d517872 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 12 May 2013 22:13:28 -0400 Subject: [PATCH] Fix race condition for fluid layout --- www/assets/js/client.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/www/assets/js/client.js b/www/assets/js/client.js index 778ca3c7..b1be25f1 100644 --- a/www/assets/js/client.js +++ b/www/assets/js/client.js @@ -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) {