CC-4961: Show linking
Add front-end for creating a show with monthly repeats on same day of week
This commit is contained in:
parent
187e49e4b2
commit
327d0dd6c9
3 changed files with 31 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue