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('