CC-4663: Smart Blocks -> Deleting a track in smart block from library gives error
-fixed -tracks with undefined mime type were not handled properly
This commit is contained in:
parent
796274e4ef
commit
2854dd40e0
|
@ -369,6 +369,9 @@ var AIRTIME = (function(AIRTIME){
|
||||||
$.each($("div .big_play"), function(index, value){
|
$.each($("div .big_play"), function(index, value){
|
||||||
if ($(value).attr('blockId') === undefined) {
|
if ($(value).attr('blockId') === undefined) {
|
||||||
var mime = $(value).attr("data-mime-type");
|
var mime = $(value).attr("data-mime-type");
|
||||||
|
//If mime is undefined it is likely because the file was
|
||||||
|
//deleted from the library. This case is handled in mod.onReady()
|
||||||
|
if (mime !== undefined) {
|
||||||
if (isAudioSupported(mime)) {
|
if (isAudioSupported(mime)) {
|
||||||
$(value).bind("click", openAudioPreview);
|
$(value).bind("click", openAudioPreview);
|
||||||
} else {
|
} else {
|
||||||
|
@ -393,6 +396,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($(value).attr('blocktype') === 'dynamic') {
|
if ($(value).attr('blocktype') === 'dynamic') {
|
||||||
$(value).attr("class", "big_play_disabled dark_class");
|
$(value).attr("class", "big_play_disabled dark_class");
|
||||||
|
|
Loading…
Reference in New Issue