diff --git a/app/views/admin/ad_images/_jplayer.html.erb b/app/views/admin/ad_images/_jplayer.html.erb index abb6c69..a7d8f05 100644 --- a/app/views/admin/ad_images/_jplayer.html.erb +++ b/app/views/admin/ad_images/_jplayer.html.erb @@ -161,6 +161,7 @@ //$(ele).jPlayer("pauseOthers"); hide_jplayer_ui_<%= i %>(ele); } + } function ad_call_on_pause_jplayer_<%= i %>(ele){ var cyclediv = $(ele).parents("div.cycle-slideshow").eq(0); @@ -177,11 +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); } 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); <% 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 cb5ee59..63ff25e 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -37,7 +37,13 @@ if (typeof ad_banners_count === 'undefined'){ var ad_banners_count = 0; } - + function ad_audio_button(ele,is_stop){ + if (is_stop){ + $(ele).find('.jarallax-video-audio').remove() + }else{ + $(ele).append('