CC-4314: Library: Add playlist to playlist shows wrong error message

-fixed
This commit is contained in:
denise 2012-08-29 16:47:20 -04:00
parent b75f2ab9c7
commit 3ff80fae14
1 changed files with 5 additions and 1 deletions

View File

@ -141,7 +141,11 @@ var AIRTIME = (function(AIRTIME){
if (aMediaIds.length > 0) {
AIRTIME.playlist.fnAddItems(aMediaIds, undefined, 'after');
} else {
alert('You can only add tracks to smart blocks.');
if ($('#obj_type').val() == 'block') {
alert('You can only add tracks to smart blocks.');
} else if ($('#obj_type').val() == 'playlist') {
alert('You can only add tracks and smart blocks to playlists.');
}
}
});