mirror of https://github.com/calzoneman/sync.git
Fix race condition for fluid layout
This commit is contained in:
parent
b98a785740
commit
12c2ef8669
|
@ -543,11 +543,6 @@ $("#youtube_search").click(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#largelayout").click(largeLayout);
|
|
||||||
$("#hugelayout").click(hugeLayout);
|
|
||||||
$("#narrowlayout").click(narrowLayout);
|
|
||||||
$("#stlayout").click(synchtubeLayout);
|
|
||||||
|
|
||||||
function fluidLayout() {
|
function fluidLayout() {
|
||||||
$(".row").each(function() {
|
$(".row").each(function() {
|
||||||
$(this).removeClass("row").addClass("row-fluid");
|
$(this).removeClass("row").addClass("row-fluid");
|
||||||
|
@ -642,6 +637,9 @@ function synchtubeLayout() {
|
||||||
function onYouTubeIframeAPIReady() {
|
function onYouTubeIframeAPIReady() {
|
||||||
if(!PLAYER)
|
if(!PLAYER)
|
||||||
PLAYER = new Media({id: "", type: "yt"});
|
PLAYER = new Media({id: "", type: "yt"});
|
||||||
|
if(USEROPTS.layout == "fluid") {
|
||||||
|
fluidLayout();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function createCookie(name,value,days) {
|
function createCookie(name,value,days) {
|
||||||
|
|
Loading…
Reference in New Issue