CC-1985 : Automatic rebroadcast of recorded content

working on disabling resizing of a rebroadcast show.
This commit is contained in:
naomiaro 2011-03-15 16:39:52 -04:00
parent 29816f32fa
commit bd81b0cd4f
2 changed files with 17 additions and 14 deletions

View file

@ -456,27 +456,28 @@ class Show {
private static function makeFullCalendarEvent($show, $options=array()) {
global $CC_DBC;
$event = array();
if($show["rebroadcast"]) {
$title = "REBROADCAST ".$show["name"];
$event["disableResizing"] = true;
}
else {
$title = $show["name"];
}
$event = array(
"id" => $show["instance_id"],
"title" => $title,
"start" => $show["starts"],
"end" => $show["ends"],
"allDay" => false,
"description" => $show["description"],
"color" => $show["color"],
"backgroundColor" => $show["background_color"],
"showId" => $show["show_id"],
"record" => intval($show["record"]),
"rebroadcast" => intval($show["rebroadcast"])
);
$event["id"] = $show["instance_id"];
$event["title"] = $title;
$event["start"] = $show["starts"];
$event["end"] = $show["ends"];
$event["allDay"] = false;
$event["description"] = $show["description"];
$event["color"] = $show["color"];
$event["backgroundColor"] = $show["background_color"];
$event["showId"] = $show["show_id"];
$event["record"] = intval($show["record"]);
$event["rebroadcast"] = intval($show["rebroadcast"]);
foreach($options as $key=>$value) {
$event[$key] = $value;