Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -73,6 +73,13 @@ |
74 | 74 | output += payflowproGatewayErrorMsgJs + ' ' + currField + '.\\r\\n'; |
75 | 75 | } |
76 | 76 | } |
| 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 | + } |
77 | 84 | |
78 | 85 | // validate email address |
79 | 86 | var apos = document.payment.emailAdd.value.indexOf("@"); |
— | — | @@ -85,9 +92,6 @@ |
86 | 93 | if( output ) { |
87 | 94 | alert( output ); |
88 | 95 | return false; |
89 | | - } else { |
90 | | - document.payment.submit(); |
91 | | - return true; |
92 | 96 | } |
93 | 97 | } |
94 | 98 | </script> |