Fix error when trying to preview playlists/smart blocks
This commit is contained in:
parent
1f8e8f85b9
commit
a9d30fec15
|
@ -1010,12 +1010,12 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
callback = function() {
|
callback = function() {
|
||||||
if (data.ftype === 'playlist' && data.length !== '0.0'){
|
if (data.ftype === 'playlist' && data.length !== '0.0'){
|
||||||
playlistIndex = $(this).parent().attr('id').substring(3); // remove the pl_
|
playlistIndex = $(this).attr('id').substring(3); // remove the pl_
|
||||||
open_playlist_preview(playlistIndex, 0);
|
open_playlist_preview(playlistIndex, 0);
|
||||||
} else if (data.ftype === 'audioclip' || data.ftype === 'stream') {
|
} else if (data.ftype === 'audioclip' || data.ftype === 'stream') {
|
||||||
open_audio_preview(data.ftype, data.id);
|
open_audio_preview(data.ftype, data.id);
|
||||||
} else if (data.ftype === 'block') {
|
} else if (data.ftype === 'block') {
|
||||||
blockIndex = $(this).parent().attr('id').substring(3); // remove the pl_
|
blockIndex = $(this).attr('id').substring(3); // remove the pl_
|
||||||
open_block_preview(blockIndex, 0);
|
open_block_preview(blockIndex, 0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue