CC-3910: NowPlaying-> preview dialog is greyed for files uploaded to Soundcloud

- fixed
This commit is contained in:
James 2012-06-07 11:26:35 -04:00
parent be02906565
commit dc4597e526
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ function openAudioPreview(p_event) {
}
function open_audio_preview(audioFileID, audioFileTitle, audioFileArtist) {
// we need to remove soundcloud icon from audioFileTitle
var index = audioFileTitle.indexOf("<span class=");
if(index != -1){
audioFileTitle = audioFileTitle.substring(0,index);
}
openPreviewWindow('audiopreview/audio-preview/audioFileID/'+audioFileID+'/audioFileArtist/'+audioFileArtist+'/audioFileTitle/'+audioFileTitle);
_preview_window.focus();
}