CC-5768 : jPlayer, make now playing and playlist preview buttons function
fix for an empty playlist
This commit is contained in:
parent
a9df6bdba0
commit
659a988ca8
|
@ -489,12 +489,13 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
function checkPlayability($contents) {
|
function checkPlayability($contents) {
|
||||||
|
|
||||||
$contents.each(function(index, element) {
|
$contents.find(".big_play").each(function(index, element) {
|
||||||
var $el = $(element),
|
var $el = $(element),
|
||||||
mime = $el.data("mimeType");
|
$li = $el.parents("li"),
|
||||||
|
mime = $li.data("mimeType");
|
||||||
|
|
||||||
if (!AIRTIME.playerPreview.isAudioSupported(mime)) {
|
if (!AIRTIME.playerPreview.isAudioSupported(mime)) {
|
||||||
$el.find(".big_play").attr("class", "big_play_disabled dark_class");
|
$el.attr("class", "big_play_disabled dark_class");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue