Cosmetic updates

This commit is contained in:
Duncan Sommerville 2015-08-25 11:46:20 -04:00
parent e6761b54da
commit afe6ca7002
7 changed files with 40 additions and 51 deletions

View file

@ -403,6 +403,7 @@ var AIRTIME = (function(AIRTIME) {
//Re-enable the delete button
AIRTIME.button.enableButton("btn-group #sb-trash", false);
});
mod.selectNone();
};
mod.fnDeleteSelectedItems = function() {
@ -432,13 +433,14 @@ var AIRTIME = (function(AIRTIME) {
// close the object (playlist/block/webstream)
// on the right side if it was just deleted
// from the library
if (closeObj) {
$.post(baseUrl+"playlist/close-playlist",
{"format": "json", "type": currentObjType},
function(json) {
$("#editor_pane_wrapper").empty().append(json.html);
});
}
//if (closeObj) {
// $.post(baseUrl+"playlist/close-playlist",
// {"format": "json", "type": currentObjType},
// function(json) {
// $("#editor_pane_wrapper").empty().append(json.html);
// });
//}
}
};

View file

@ -342,9 +342,9 @@ var AIRTIME = (function(AIRTIME){
};
mod.fnRemove = function(aItems) {
mod.disableUI();
if (confirm($.i18n._("Delete selected item(s)?"))) {
mod.selectNone();
$.post( baseUrl+"showbuilder/schedule-remove",
{"items": aItems, "format": "json"},
mod.fnItemCallback