From 4af6d659e8381fd6fc3f5aa8d7e0521761b44462 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 21 Dec 2015 17:04:51 +0530 Subject: [PATCH] CRM-17735: Payment fields fail to reappear on donation page after using enter key in 'other amount' text box ---------------------------------------- * CRM-17735: Payment fields fail to reappear on donation page after using enter key in "other amount" text box https://issues.civicrm.org/jira/browse/CRM-17735 --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 6ce70a6898..b257ada13f 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -498,7 +498,7 @@ flag = true; } }); - cj('.price-set-option-content input, .other_amount-content input').change( function () { + cj('.price-set-option-content input, .other_amount-content input').on('input', function () { currentTotal = cj(this).is('[data-amount]') ? cj(this).attr('data-amount').replace(/[^\/\d]/g,'') : (cj(this).val() ? cj(this).val() : 0); if (currentTotal == 0 ) { flag = true; -- 2.25.1