diff --git a/app/views/admin/ad_images/_jplayer.html.erb b/app/views/admin/ad_images/_jplayer.html.erb index a7d8f05..e4f583d 100644 --- a/app/views/admin/ad_images/_jplayer.html.erb +++ b/app/views/admin/ad_images/_jplayer.html.erb @@ -178,13 +178,13 @@ var jpalyer_video = $(ele).parents('.jp-video').eq(0); jpalyer_video.find(".jp-gui").css("display",""); jpalyer_video.addClass('hide-ui'); - ad_audio_button(ele,true); + ad_audio_button(ele,false); } function show_jplayer_ui_<%= i %>(ele) { <% unless @hide_video_tools %> var jpalyer_video = $(ele).parents('.jp-video').eq(0); jpalyer_video.removeClass('hide-ui'); - ad_audio_button(ele,false); + ad_audio_button(ele,true); <% end %> } function click_jplayer_<%= i %>(){ diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index 63ff25e..489fc97 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -39,9 +39,9 @@ } function ad_audio_button(ele,is_stop){ if (is_stop){ - $(ele).find('.jarallax-video-audio').remove() + $(ele).find('.jarallax-video-audio').remove(); }else{ - $(ele).append('
') + $(ele).append('
'); } } if(document.getElementById("youtube-iframe-api") == null){ @@ -119,12 +119,12 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){ cyclediv[0].need_resume = !(cyclediv.hasClass("cycle-paused")); cyclediv.cycle("pause"); widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','hidden') - ad_audio_button(cyclediv,true); + ad_audio_button(cyclediv,false); }else if(event.data == YT.PlayerState.UNSTARTED || event.data == YT.PlayerState.PAUSED || event.data == YT.PlayerState.ENDED){ if(cyclediv[0].need_resume) cyclediv.cycle("resume"); widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','') - ad_audio_button(cyclediv,false); + ad_audio_button(cyclediv,true); } {{extra_state_chnage_script}} }