r76824 MediaWiki - Code Review archive

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

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -30,7 +30,6 @@
3131 var city = document.getElementById('city');
3232 var zip = document.getElementById('zip');
3333 var email = document.getElementById('emailAdd');
34 - var amountOther = document.getElementById('amountOther');
3534 if (fname.value == '') {
3635 fname.style.color = '#999999';
3736 fname.value = '$first';
@@ -75,11 +74,20 @@
7675 }
7776
7877 if (document.getElementById('fname').value == '$first') {
79 - output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg['Fname']] + '.\\r\\n';
 78+ output += payflowproGatewayErrorMsgJs + ' First Name.\\r\\n';
8079 }
81 - if (document.getElementById('lname').value == '$last') {
82 - output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg['Lname']] + '.\\r\\n';
 80+ if (document.getElementById('street').value == '$street') {
 81+ output += payflowproGatewayErrorMsgJs + ' Street Address.\\r\\n';
8382 }
 83+ if (document.getElementById('city').value == '$city') {
 84+ output += payflowproGatewayErrorMsgJs + ' City.\\r\\n';
 85+ }
 86+ if (document.getElementById('zip').value == '$zip') {
 87+ output += payflowproGatewayErrorMsgJs + ' Zip Code.\\r\\n';
 88+ }
 89+ if (document.getElementById('zip').value == '$zip') {
 90+ output += payflowproGatewayErrorMsgJs + ' Zip Code.\\r\\n';
 91+ }
8492
8593 // validate email address
8694 var apos = document.payment.emailAdd.value.indexOf("@");

Status & tagging log