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:
parent
4ff1e8e78a
commit
eb38503d6e
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue