CC-4314: Library: Add playlist to playlist shows wrong error message
-fixed
This commit is contained in:
parent
b75f2ab9c7
commit
3ff80fae14
1 changed files with 5 additions and 1 deletions
|
@ -141,7 +141,11 @@ var AIRTIME = (function(AIRTIME){
|
||||||
if (aMediaIds.length > 0) {
|
if (aMediaIds.length > 0) {
|
||||||
AIRTIME.playlist.fnAddItems(aMediaIds, undefined, 'after');
|
AIRTIME.playlist.fnAddItems(aMediaIds, undefined, 'after');
|
||||||
} else {
|
} 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.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue