CC-4219: Smart Playlist: Cannot preview static block
-fixed
This commit is contained in:
parent
d366220b85
commit
4d9a31b3c1
|
@ -191,8 +191,14 @@ class AudiopreviewController extends Zend_Controller_Action
|
|||
'element_id' => isset($track['id'])?$track['id']:"",
|
||||
'element_position' => isset($track['position'])?$track['position']:"",
|
||||
);
|
||||
|
||||
|
||||
|
||||
/* If the track type is static we know it must be
|
||||
* a track because static blocks can only contain
|
||||
* tracks
|
||||
*/
|
||||
if ($track['type'] == 'static') {
|
||||
$track['type'] = 0;
|
||||
}
|
||||
$elementMap['type'] = $track['type'];
|
||||
|
||||
if ($track['type'] == 0) {
|
||||
|
|
|
@ -426,6 +426,9 @@ var AIRTIME = (function(AIRTIME) {
|
|||
open_audio_preview(aData.ftype, aData.audioFile, aData.track_title, aData.artist_name);
|
||||
} else if (aData.ftype == 'stream') {
|
||||
open_audio_preview(aData.ftype, aData.audioFile, aData.track_title, aData.artist_name);
|
||||
} else if (aData.ftype == 'block') {
|
||||
blockIndex = $(this).parent().attr('id').substring(3); //remove the bl_
|
||||
open_block_preview(blockIndex, 0);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue