MediaWiki:Common.js: Difference between revisions

Content deleted Content added
remove otherVal support, superseded by preSelect
check preSelectAmount > 0
Line 309:
If there isn't an option, add it to the "Other" box and select that */
var preSelectAmount = mw.util.getParamValue('preSelect');
if ( preSelectAmount > 0 ) {
$preSelectOption = $('input[name="amount"][value="' + preSelectAmount + '"]');
if ( $preSelectOption.length ) {