CC-4286: Library: Alert pops up when double clicking any item in Library when nothing is opened in right side

-fixed
This commit is contained in:
denise 2012-08-24 17:37:13 -04:00
parent bc660c4cdf
commit 53418e475d
1 changed files with 5 additions and 2 deletions

View File

@ -100,8 +100,11 @@ var AIRTIME = (function(AIRTIME){
//process selected files/playlists.
aMediaIds.push(new Array(data.id, data.ftype));
AIRTIME.playlist.fnAddItems(aMediaIds, undefined, 'after');
//check if a playlist/block is open before adding items
if ($('input[id="obj_type"]').val() == 'playlist' || $('input[id="obj_type"]').val() == 'block') {
AIRTIME.playlist.fnAddItems(aMediaIds, undefined, 'after');
}
};
mod.setupLibraryToolbar = function() {