From 95ce33ea960789db3da8156695cf94b31f27f5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 14 Nov 2021 13:17:32 +0800 Subject: [PATCH] fix error --- modules/ad_banner/_ad_banner_widget2_video.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);