MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
decode base64 recipient_id if needed
Tag: Reverted
rm base64 decoding, being done in Civi now - phab:T381931
Tag: Undo
 
Line 853:
}
// SMS
varif recipient_id =( mw.util.getParamValue( 'recipient_id' ); ) {
if params.recipient_id = mw.util.getParamValue( 'recipient_id' ) {;
if ( isNaN( parseFloat( recipient_id ) ) ) {
// Lop off last 2 characters and decode base64
params.recipient_id = atob( recipient_id.slice(0, -2) );
} else {
params.recipient_id = recipient_id;
}
}