diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index 5406936..cb5ee59 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -73,7 +73,6 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){ delete yt_players[id][k]; }) iframes.each(function(i,iframe){ - console.log($(iframe).attr("id")) var yt_player = yt_players[id][$(iframe).attr("id")]; if(yt_player){ }else{ @@ -122,6 +121,7 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){ } {{extra_state_chnage_script}} } +} $(document).ready(function(){ window.onYouTubePlayerAPIReady = function() { onYouTubeIframeAPIReady.apply(this,arguments); @@ -176,7 +176,6 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){ },300); }) }) -}