MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
add utm_key and initial tracking - viewport width/height and time taken on page
add otherAmt and validateError tracking
Line 613:
form.method = 'GET';
form.submit();
} else {
donationForm.extraData.validateError = 1; // Flag they had an error, even if fixed later
}
 
Line 668 ⟶ 671:
var form = document.paypalcontribution;
var amount = null;
donationForm.extraData.otherAmt = 0;
 
// If there are some amount radio buttons, then look for the checked one
Line 687 ⟶ 691:
form.amountGiven.value = otherAmount; // TODO: change this
amount = otherAmount;
donationForm.extraData.otherAmt = 1;
}