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
application

View File

@ -341,6 +341,7 @@ class ScheduleController extends Zend_Controller_Action
$formRepeats = new Application_Form_AddShowRepeats();
$formStyle = new Application_Form_AddShowStyle();
$formRecord = new Application_Form_AddShowRR();
$formAbsoluteRebroadcast = new Application_Form_AddShowAbsoluteRebroadcastDates();
$formRebroadcast = new Application_Form_AddShowRebroadcastDates();
$formWhat->removeDecorator('DtDdWrapper');
@ -349,6 +350,7 @@ class ScheduleController extends Zend_Controller_Action
$formRepeats->removeDecorator('DtDdWrapper');
$formStyle->removeDecorator('DtDdWrapper');
$formRecord->removeDecorator('DtDdWrapper');
$formAbsoluteRebroadcast->removeDecorator('DtDdWrapper');
$formRebroadcast->removeDecorator('DtDdWrapper');
$this->view->what = $formWhat;
@ -357,8 +359,8 @@ class ScheduleController extends Zend_Controller_Action
$this->view->who = $formWho;
$this->view->style = $formStyle;
$this->view->rr = $formRecord;
$this->view->absoluteRebroadcast = $formAbsoluteRebroadcast;
$this->view->rebroadcast = $formRebroadcast;
$what = $formWhat->isValid($data);
$when = $formWhen->isValid($data);
if($when) {

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;