MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
Undo revision 36537 by Pcoombe (talk)
Tag: Undo
fix phab:T289247 - simplify preSelect values with extra decimal places to select preset buttons
Line 600:
/* Check for a 'preSelect' url parameter, and select that option.
If there isn't an option, add it to the "Other" box and select that */
var preSelectAmount = parseFloat( mw.util.getParamValue('preSelect') );
if ( preSelectAmount > 0 ) {
var $preSelectOption = $('input[name="amount"][value="' + preSelectAmount + '"]');