Fix error when trying to preview playlists/smart blocks

This commit is contained in:
Duncan Sommerville 2015-08-18 16:22:14 -04:00
parent 1f8e8f85b9
commit a9d30fec15
1 changed files with 2 additions and 2 deletions

View File

@ -1010,12 +1010,12 @@ var AIRTIME = (function(AIRTIME) {
callback = function() {
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);
} else if (data.ftype === 'audioclip' || data.ftype === 'stream') {
open_audio_preview(data.ftype, data.id);
} 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);
}
};