From 24bf89a3a8c909eba15adce6aaffc0488cea07ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 15 Nov 2021 14:31:09 +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 10c7006..654fceb 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -48,6 +48,9 @@ }else{ audio_div = $(''); } + audio_div.click(function(event) { + event.stopPropagation(); + }); $self.append(audio_div); } } @@ -66,8 +69,6 @@ }) if (typeof onYouTubeIframeAPIReady !== 'function'){ $(document).on('click touchstart',".jarallax-video-audio",function(event){ - event.stopImmediatePropagation(); - event.stopPropagation(); var $self = $(this).parent(); var $video = $self.find('video'); if ($self.hasClass('have-audio')){