MediaWiki:DonationForm.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Post-payments monthly convert makes no sense if it's already recurring. Avoid things like phab:T312905 |
don't preselect anything >1000 - hack to deal with error in email send Tag: Reverted |
||
Line 613: | Line 613: | ||
If there isn't an option, add it to the "Other" box and select that */ |
If there isn't an option, add it to the "Other" box and select that */ |
||
var preSelectAmount = parseFloat( mw.util.getParamValue('preSelect') ); |
var preSelectAmount = parseFloat( mw.util.getParamValue('preSelect') ); |
||
if ( preSelectAmount > 0 ) { |
if ( preSelectAmount > 0 && preSelectAmount <= 1000 ) { |
||
var $preSelectOption = $('input[name="amount"][value="' + preSelectAmount + '"]'); |
var $preSelectOption = $('input[name="amount"][value="' + preSelectAmount + '"]'); |
||
if ( $preSelectOption.length ) { |
if ( $preSelectOption.length ) { |