CC-3997: Now Playing -> Time Line: different behaviour between 'delete'

button and 'delete' menu items

- added confirm box on clicking delete button on now playing table
- also added confirm box on library delete button as well
This commit is contained in:
James 2012-06-26 17:43:15 -04:00
parent 4af43c7a10
commit 31d643cee1
2 changed files with 24 additions and 19 deletions

View file

@ -243,11 +243,14 @@ var AIRTIME = (function(AIRTIME){
mod.fnRemove = function(aItems) {
mod.disableUI();
$.post( "/showbuilder/schedule-remove",
{"items": aItems, "format": "json"},
mod.fnItemCallback
);
if (confirm("Delete selected item(s)?")) {
$.post( "/showbuilder/schedule-remove",
{"items": aItems, "format": "json"},
mod.fnItemCallback
);
}else{
mod.enableUI();
}
};
mod.fnRemoveSelectedItems = function() {