CC-4946: Now Playing -> Apache error when empty show starts

-we were trying to update the is_scheduled flag on a non-schedule item
This commit is contained in:
denise 2013-02-13 11:51:25 -05:00
parent 4ff1e8e78a
commit eb38503d6e
1 changed files with 9 additions and 7 deletions

View File

@ -86,13 +86,15 @@ var AIRTIME = (function(AIRTIME){
// once a track plays out we need to check if we can update
// the is_scheduled flag in cc_files
$.post(baseUrl+"schedule/update-future-is-scheduled",
{"format": "json", "schedId": schedId}, function(data) {
if (data.redrawLibTable !== undefined && data.redrawLibTable) {
$("#library_content").find("#library_display").dataTable().fnStandingRedraw();
}
});
oSchedTable.fnDraw();
if (schedId > 0) {
$.post(baseUrl+"schedule/update-future-is-scheduled",
{"format": "json", "schedId": schedId}, function(data) {
if (data.redrawLibTable !== undefined && data.redrawLibTable) {
$("#library_content").find("#library_display").dataTable().fnStandingRedraw();
}
});
oSchedTable.fnDraw();
}
};
mod.checkSelectButton = function() {