MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
m fix
decode base64 recipient_id if needed
Tag: Reverted
Line 853:
}
// SMS
ifvar (recipient_id = mw.util.getParamValue( 'recipient_id' ) ) {;
params.recipient_idif = 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;
}
}