CC-4961: Show linking

Add front-end for creating a show with monthly repeats on same day of week
This commit is contained in:
denise 2013-03-22 15:57:15 -04:00
parent 187e49e4b2
commit 327d0dd6c9
3 changed files with 31 additions and 3 deletions

View file

@ -216,11 +216,22 @@ function setAddShowEvents() {
form.find("#add_show_repeat_type").change(function(){
if($(this).val() == 2) {
form.find("#add_show_day_check-label, #add_show_day_check-element").hide();
//form.find("#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element").show();
}
else {
form.find("#add_show_day_check-label, #add_show_day_check-element").show();
//form.find("#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element").hide();
}
toggleMonthlyRepeatType();
});
toggleMonthlyRepeatType();
function toggleMonthlyRepeatType() {
if (form.find("#add_show_repeat_type").val() == 2) {
form.find("#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element").show();
} else {
form.find("#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element").hide();
}
}
form.find("#add_show_day_check-label").addClass("block-display");
form.find("#add_show_day_check-element").addClass("block-display clearfix");