r99555 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99554‎ | r99555 | r99556 >
Date:20:09, 11 October 2011
Author:awjrichards
Status:ok
Tags:fundraising 
Comment:
Correcting JS scope to play nicely with RL
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -23,7 +23,8 @@
2424 $email = wfMsg( 'payflowpro_gateway-donor-email' );
2525 $js = <<<EOT
2626 <script type="text/javascript">
27 -function loadPlaceholders() {
 27+//function loadPlaceholders() {
 28+window.loadPlaceholders = function() {
2829 var fname = document.getElementById('fname');
2930 var lname = document.getElementById('lname');
3031 var street = document.getElementById('street');
@@ -57,7 +58,8 @@
5859 }
5960 addEvent( window, 'load', loadPlaceholders );
6061
61 -function formCheck( ccform ) {
 62+//function formCheck( ccform ) {
 63+window.formCheck = function( ccform ) {
6264 var msg = [ 'EmailAdd', 'Fname', 'Lname', 'Street', 'City', 'Zip', 'CardNum', 'Cvv' ];
6365
6466 var fields = ["emailAdd","fname","lname","street","city","zip","card_num","cvv" ],

Follow-up revisions

RevisionCommit summaryAuthorDate
r99556MFT r99555awjrichards20:11, 11 October 2011

Status & tagging log