MediaWiki:DonationForm.js: Difference between revisions
Content deleted Content added
Tag: Undo |
make max USD amount a variable, prepare to insert into new error message |
||
Line 11:
};
donationForm.maxUSD = 10000;
donationForm.minimums = {
/* From https://github.com/wikimedia/wikimedia-fundraising-SmashPig/blob/master/PaymentData/ReferenceData/CurrencyRates.php */
Line 217 ⟶ 218:
$('.lp-error-bigamount').text( function( index, oldText ) {
return oldText.replace( '$1',
.replace( '$2', currency )
.replace( '$3', 'benefactors@wikimedia.org' )
.replace( '$4', donationForm.maxUSD );
});
};
Line 762 ⟶ 764:
$('.lp-error-smallamount').show();
return false;
} else if ( amount >
$('.amount-options').addClass('lp-haserror');
$('.lp-error-bigamount').show();
|