r76822 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76821‎ | r76822 | r76823 >
Date:19:17, 16 November 2010
Author:kaldari
Status:deferred
Tags:
Comment:
test
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -73,6 +73,13 @@
7474 output += payflowproGatewayErrorMsgJs + ' ' + currField + '.\\r\\n';
7575 }
7676 }
 77+
 78+ if (document.getElementById('fname').value == '$first') {
 79+ output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg['Fname']] + '.\\r\\n';
 80+ }
 81+ if (document.getElementById('lname').value == '$last') {
 82+ output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg['Lname']] + '.\\r\\n';
 83+ }
7784
7885 // validate email address
7986 var apos = document.payment.emailAdd.value.indexOf("@");
@@ -85,9 +92,6 @@
8693 if( output ) {
8794 alert( output );
8895 return false;
89 - } else {
90 - document.payment.submit();
91 - return true;
9296 }
9397 }
9498 </script>

Status & tagging log