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:
parent
4af43c7a10
commit
31d643cee1
2 changed files with 24 additions and 19 deletions
|
@ -252,6 +252,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
};
|
||||
|
||||
mod.fnDeleteSelectedItems = function() {
|
||||
if (confirm('Are you sure you want to delete the selected item(s)?')) {
|
||||
var aData = AIRTIME.library.getSelectedData(),
|
||||
item,
|
||||
temp,
|
||||
|
@ -266,6 +267,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
|
||||
AIRTIME.library.fnDeleteItems(aMedia);
|
||||
}
|
||||
};
|
||||
|
||||
libraryInit = function() {
|
||||
|
|
|
@ -243,11 +243,14 @@ var AIRTIME = (function(AIRTIME){
|
|||
mod.fnRemove = function(aItems) {
|
||||
|
||||
mod.disableUI();
|
||||
|
||||
if (confirm("Delete selected item(s)?")) {
|
||||
$.post( "/showbuilder/schedule-remove",
|
||||
{"items": aItems, "format": "json"},
|
||||
mod.fnItemCallback
|
||||
);
|
||||
}else{
|
||||
mod.enableUI();
|
||||
}
|
||||
};
|
||||
|
||||
mod.fnRemoveSelectedItems = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue