From: systopia Date: Thu, 7 Jan 2016 16:31:30 +0000 (+0100) Subject: simplified fix for CRM-17589 (colemanw) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=07d98c8087909227fb6bf21ad759388df1513690;p=civicrm-core.git simplified fix for CRM-17589 (colemanw) --- diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 1cb854d5cd..95f2dd8194 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -488,9 +488,8 @@ }); function showHideCancelInfo(obj) { - var selected_status_id = obj.find(":selected").val(); var cancelInfo_show_ids = [{/literal}{$cancelInfo_show_ids}{literal}]; - if (cancelInfo_show_ids.indexOf(selected_status_id) > -1) { + if (cancelInfo_show_ids.indexOf(obj.val()) > -1) { cj('#cancelInfo').show( ); cj('#total_amount').attr('readonly', true); }