MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 770:
donationForm.updateFeeDisplay = function() {
var feeAmount = donationForm.calculateFee( donationForm.getAmount() );
if ( feeAmount % 1 !== 0 ) { // Not a whole number
feeAmount = feeAmount.toFixed(2);
} else {
feeAmount = feeAmount.toString();
}
$('.ptf label span').text( feeAmount );
$('.ptf').slideDown();