MediaWiki:Common.js: Difference between revisions
Content deleted Content added
improved preSelect(), allows filling out 'Other' box |
dumb mistake with preSelectAmount |
||
Line 320:
If there isn't an option, add it to the "Other" box and select that */
var preSelectAmount = mw.util.getParamValue('preSelect');
if ( preSelectAmount
$preSelectOption = $('input[name="amount"][value="' + preSelectAmount + '"]');
if ( $preSelectOption.length ) {
|