From 8282178ad0902f31852a8eaad367a09b7c61bc1b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 17 Sep 2014 21:24:47 -0400 Subject: [PATCH] OnBehalfOf.tpl - fix attr vs prop and trigger change --- templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl index a42f8e3334..a63e56742d 100644 --- a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl +++ b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl @@ -169,16 +169,15 @@ function showOnBehalf(onBehalfRequired) { } function resetValues() { - cj('input[type=text], select, textarea', "#select_org div").not('#onbehalfof_id').val(''); - cj('input[type=radio], input[type=checkbox]', "#select_org tr td").prop('checked', false); + cj('input[type=text], select, textarea', "#select_org div").not('#onbehalfof_id').val('').change(); + cj('input[type=radio], input[type=checkbox]', "#select_org tr td").prop('checked', false).change(); } function createNew( ) { if (cj("#mode").prop('checked')) { var textMessage = ' {/literal}{ts escape="js"}Use existing organization{/ts}{literal} '; - cj("#onbehalf_organization_name").removeAttr('readonly'); + cj("#onbehalf_organization_name").prop('readonly', false); cj("#mode").prop('checked', false); - cj("#mode").removeAttr('checked'); resetValues(); } else { -- 2.25.1