From 07d98c8087909227fb6bf21ad759388df1513690 Mon Sep 17 00:00:00 2001 From: systopia Date: Thu, 7 Jan 2016 17:31:30 +0100 Subject: [PATCH] simplified fix for CRM-17589 (colemanw) --- templates/CRM/Contribute/Form/Contribution.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.25.1