From 3fb5a625e00e7059d5133114731c39a7541d8784 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 11 Mar 2016 16:04:45 +0530 Subject: [PATCH] CRM-18209 - show payment fields if other-amount already contains a valid amount --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 1b9988d539..ce004f50d4 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -511,6 +511,11 @@ showHidePayment(flag); }); } + // show payment fields if other-amount already contains a valid amount. + if (cj('.other_amount-content input').val() > 0) { + flag = false; + } + toggleConfirmButton(flag); showHidePayment(flag); } -- 2.25.1