From: Coleman Watts Date: Mon, 22 Sep 2014 23:18:07 +0000 (-0400) Subject: CRM-15242 - Resubmit PR #4103 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd4d98b5b0ddfda3a498bab368eab945cf85edc3;p=civicrm-core.git CRM-15242 - Resubmit PR #4103 --- 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}