CC-5093: Please disable link option for recording show

This commit is contained in:
denise 2013-05-08 15:08:56 -04:00
parent 9dbec4636a
commit fe88e6249a
2 changed files with 7 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class Application_Service_ShowFormService
'add_show_no_end' => (!$service_show->getRepeatingEndDate()), 'add_show_no_end' => (!$service_show->getRepeatingEndDate()),
'add_show_monthly_repeat_type' => $monthlyRepeatType)); 'add_show_monthly_repeat_type' => $monthlyRepeatType));
if (!$this->ccShow->isLinkable()) { if (!$this->ccShow->isLinkable() || $this->ccShow->isRecorded()) {
$form->getElement('add_show_linked')->setOptions(array('disabled' => true)); $form->getElement('add_show_linked')->setOptions(array('disabled' => true));
} }
} }

View File

@ -191,6 +191,12 @@ function setAddShowEvents() {
$(this).blur(); $(this).blur();
form.find("#add_show_rebroadcast").toggle(); form.find("#add_show_rebroadcast").toggle();
if (form.find("#add_show_record").attr("checked")) {
form.find("#add_show_linked").attr("checked", false).attr("disabled", true);
} else {
form.find("#add_show_linked").attr("disabled", false);
}
//uncheck rebroadcast checkbox //uncheck rebroadcast checkbox
form.find("#add_show_rebroadcast").attr('checked', false); form.find("#add_show_rebroadcast").attr('checked', false);