MediaWiki:DonationFormSandbox.js: Difference between revisions

Content deleted Content added
Created page with "jshint strict:false: * MediaWiki:DonationForm.js - loaded on all donation forms * TODO: lots of cleanup: var donationForm = {}; donationForm.loadedTime = Date.now(); donationForm.extraData = { 'vw' : window.innerWidth, 'vh' : window.innerHeight }; if ( navigator.brave !== undefined ) { // T283367 donationForm.extraData.brave = '1'; } // Don't offer recurring at all in these countries donationForm.noRecurringCountries = [ 'AR', 'CL', 'CO', 'MX',..."
 
No edit summary
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 + '"]');