fix error
This commit is contained in:
parent
3b2f22159e
commit
594aa306a0
|
@ -345,9 +345,11 @@
|
|||
//jPlayer_<%= i %>_data["autoPlay"] = <%= @autoplay_video == true %>;
|
||||
jPlayer_<%= i %>["ready"] = function () {
|
||||
$(this).jPlayer("setMedia", jPlayer_<%= i %>_data);
|
||||
if ($(this).parents(".ba-banner-widget-youtube").eq(0).find(".w-ba-banner__slide").eq(0)==$(this).parents(".w-ba-banner__slide").eq(0)){
|
||||
<% if @autoplay_video == true %>
|
||||
$(this).jPlayer("mute", true).jPlayer("play",0);
|
||||
<% end %>
|
||||
}
|
||||
<% unless @hide_video_tools %>
|
||||
$(this).parents('.jp-video').eq(0).removeClass('hide-ui');
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue