$('#relativeDate, #relativeDateRepeat, #repeatFields', $form).hide();
}
- $('#entity_0', $form).change(buildSelects);
+ $('#entity_0', $form).change(buildSelects).change(showHideLimitTo);
loadMsgBox();
$('#mode', $form).change(loadMsgBox);
$('#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() {
}
}
- function showHideLimitTo() {
- if (cj('#entity_0').val() == 1) {
- cj('#limit_to').hide();
- }
- else {
- cj('#limit_to').show();
- }
- }
-
</script>
{/literal}