From fd4d98b5b0ddfda3a498bab368eab945cf85edc3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 22 Sep 2014 19:18:07 -0400 Subject: [PATCH] CRM-15242 - Resubmit PR #4103 --- templates/CRM/Admin/Form/ScheduleReminders.tpl | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/templates/CRM/Admin/Form/ScheduleReminders.tpl b/templates/CRM/Admin/Form/ScheduleReminders.tpl index c53ee0b97c..e406e35c08 100644 --- a/templates/CRM/Admin/Form/ScheduleReminders.tpl +++ b/templates/CRM/Admin/Form/ScheduleReminders.tpl @@ -182,7 +182,7 @@ $('#relativeDate, #relativeDateRepeat, #repeatFields', $form).hide(); } - $('#entity_0', $form).change(buildSelects); + $('#entity_0', $form).change(buildSelects).change(showHideLimitTo); loadMsgBox(); $('#mode', $form).change(loadMsgBox); @@ -225,6 +225,10 @@ $('#is_recipient_listing', $form).val(''); } } + // CRM-14070 Hide limit-to when entity is activity + function showHideLimitTo() { + $('#limit_to', $form).toggle(!($('#entity_0', $form).val() == '1')); + } }); function loadMsgBox() { @@ -244,15 +248,6 @@ } } - function showHideLimitTo() { - if (cj('#entity_0').val() == 1) { - cj('#limit_to').hide(); - } - else { - cj('#limit_to').show(); - } - } - {/literal} -- 2.25.1