CC-84: Smart Playlists
- fixed dragging tracks into playlists (smart and dumb) - display alert when dragging into dynamic block - display alert when dragging playlist into block
This commit is contained in:
parent
3b5a3e6713
commit
997b5c31c3
3 changed files with 35 additions and 13 deletions
|
@ -128,11 +128,14 @@ var AIRTIME = (function(AIRTIME){
|
|||
for (i = 0, length = aData.length; i < length; i++) {
|
||||
temp = aData[i];
|
||||
if (temp.ftype === "audioclip" || temp.ftype === "block") {
|
||||
aMediaIds.push(temp.id);
|
||||
aMediaIds.push(new Array (temp.id, temp.ftype));
|
||||
}
|
||||
}
|
||||
|
||||
AIRTIME.playlist.fnAddItems(aMediaIds, undefined, 'after');
|
||||
if (aMediaIds.length > 0) {
|
||||
AIRTIME.playlist.fnAddItems(aMediaIds, undefined, 'after');
|
||||
} else {
|
||||
alert('You cannot add playlists to smart playlists');
|
||||
}
|
||||
});
|
||||
|
||||
//delete from library.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue