CC-4961: Show linking
Populate repeat show form correctly when a show is repeating monthly on the same day of the week
This commit is contained in:
parent
327d0dd6c9
commit
5b69761833
2 changed files with 20 additions and 6 deletions
|
@ -214,7 +214,13 @@ function setAddShowEvents() {
|
|||
});
|
||||
|
||||
form.find("#add_show_repeat_type").change(function(){
|
||||
if($(this).val() == 2) {
|
||||
toggleRepeatDays();
|
||||
toggleMonthlyRepeatType();
|
||||
});
|
||||
toggleMonthlyRepeatType();
|
||||
toggleRepeatDays();
|
||||
function toggleRepeatDays() {
|
||||
if(form.find("#add_show_repeat_type").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();
|
||||
}
|
||||
|
@ -222,9 +228,7 @@ function setAddShowEvents() {
|
|||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue