MediaWiki:DonationForm.js: Difference between revisions
Content deleted Content added
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 + '"]');
|