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