r76748 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76747‎ | r76748 | r76749 >
Date:01:12, 16 November 2010
Author:kaldari
Status:deferred
Tags:
Comment:
check for placeholders
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js
@@ -59,8 +59,15 @@
6060 if ( document.payment.country.value != '840' ) {
6161 document.payment.state.value = 'XX';
6262 }
 63+
 64+ // validate name
 65+ if (document.getElementById('fname').style.color == '#999999') {
 66+ output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg[Fname]] + '.\r\n';
 67+ }
 68+ if (document.getElementById('lname').style.color == '#999999') {
 69+ output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg[Lname]] + '.\r\n';
 70+ }
6371
64 -
6572 // validate email address
6673 var apos = document.payment.emailAdd.value.indexOf("@");
6774 var dotpos = document.payment.emailAdd.value.lastIndexOf(".");

Status & tagging log