From e31a1240f37fa727fa50c0a5233a791cccbbbb8e Mon Sep 17 00:00:00 2001 From: James Moon Date: Wed, 20 Apr 2011 14:10:58 -0700 Subject: [PATCH] CC-2155:Can open the rebroadcast options without the 'Record'checkbox being selected - fixed --- .../public/js/airtime/schedule/add-show.js | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/airtime_mvc/public/js/airtime/schedule/add-show.js b/airtime_mvc/public/js/airtime/schedule/add-show.js index b662ae64c..23e394ef2 100644 --- a/airtime_mvc/public/js/airtime/schedule/add-show.js +++ b/airtime_mvc/public/js/airtime/schedule/add-show.js @@ -104,15 +104,17 @@ function setAddShowEvents() { form.find("#add_show_rebroadcast").click(function(){ $(this).blur(); - if($(this).attr('checked') && !form.find("#add_show_repeats").attr('checked')) { - form.find("#add_show_rebroadcast_absolute").show(); - } - else if($(this).attr('checked') && form.find("#add_show_repeats").attr('checked')) { - form.find("#add_show_rebroadcast_relative").show(); - } - else { - form.find("#schedule-record-rebroadcast > fieldset:not(:first-child)").hide(); - } + if(form.find("#add_show_record").attr('checked')){ + if($(this).attr('checked') && !form.find("#add_show_repeats").attr('checked')) { + form.find("#add_show_rebroadcast_absolute").show(); + } + else if($(this).attr('checked') && form.find("#add_show_repeats").attr('checked')) { + form.find("#add_show_rebroadcast_relative").show(); + } + else { + form.find("#schedule-record-rebroadcast > fieldset:not(:first-child)").hide(); + } + } }); form.find("#add_show_repeat_type").change(function(){