CC-4563
Library: Exception is found when remove a block by context menu - fixed
This commit is contained in:
parent
095c2c7cc6
commit
03b32ea986
|
@ -815,9 +815,10 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
//playlist screen if this is the currently edited playlist.
|
//playlist screen if this is the currently edited playlist.
|
||||||
if ((data.ftype === "playlist" || data.ftype === "block") && screen === "playlist") {
|
if ((data.ftype === "playlist" || data.ftype === "block") && screen === "playlist") {
|
||||||
callback = function() {
|
callback = function() {
|
||||||
|
aMedia = [];
|
||||||
|
aMedia.push({"id": data.id, "type": data.ftype});
|
||||||
if (confirm('Are you sure you want to delete the selected item?')) {
|
if (confirm('Are you sure you want to delete the selected item?')) {
|
||||||
AIRTIME.playlist.fnDelete(data.id);
|
AIRTIME.library.fnDeleteItems(aMedia);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue