fix error
This commit is contained in:
parent
594aa306a0
commit
0529f50e4e
|
@ -345,7 +345,7 @@
|
|||
//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 ($(this).parents(".ba-banner-widget-youtube").eq(0).find(".w-ba-banner__slide").index($(this).parents(".w-ba-banner__slide").eq(0))==0){
|
||||
<% if @autoplay_video == true %>
|
||||
$(this).jPlayer("mute", true).jPlayer("play",0);
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue