CRM-18209 - show payment fields if other-amount already contains a valid amount
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 11 Mar 2016 10:34:45 +0000 (16:04 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 11 Mar 2016 10:34:45 +0000 (16:04 +0530)
templates/CRM/Contribute/Form/Contribution/Main.tpl

index 1b9988d539ea77b049e90fae3035244beb11f0d0..ce004f50d4cb1e6e2e19abeabb3c38a706311369 100644 (file)
         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);
   }