Library: Exception is found when remove a block by context menu

- fixed
This commit is contained in:
James 2012-10-16 10:37:42 -04:00
parent 095c2c7cc6
commit 03b32ea986
1 changed files with 3 additions and 2 deletions

View File

@ -815,9 +815,10 @@ var AIRTIME = (function(AIRTIME) {
//playlist screen if this is the currently edited playlist.
if ((data.ftype === "playlist" || data.ftype === "block") && screen === "playlist") {
callback = function() {
aMedia = [];
aMedia.push({"id": data.id, "type": data.ftype});
if (confirm('Are you sure you want to delete the selected item?')) {
AIRTIME.playlist.fnDelete(data.id);
AIRTIME.library.fnDeleteItems(aMedia);
}
};
}