diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index 74ddfa7..9704ceb 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -47,7 +47,8 @@ }else{ audio_div = $('
'); } - audio_div.click(function(){ + audio_div.click(function(event){ + event.stopPropagation(); var $video = $(ele).find('video'); if ($(ele).hasClass('have-audio')){ $(ele).removeClass('have-audio'); @@ -59,7 +60,7 @@ if ($video.length>0){ $video[0].muted = !$video[0].muted; }else{//youtube - + console.log('control youtube audio'); } }) $(ele).append(audio_div);