MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
only validate on change (losing focus) not input
just hide the errors when amount is changed
Line 1,390:
donationForm.otherInputControl( document.getElementById('input_amount_other_box') );
 
// ValidateClear amounterrors and update fee when selected/entered
$('.amount-options').on( 'input change', function() {
// Ideally we would validate the amount, but this causes issues with focus
donationForm.validateAmount();
$('.amount-options .lp-error').hide();
donationForm.updateFeeDisplay();
});