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