r76826 MediaWiki - Code Review archive

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

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -85,6 +85,9 @@
8686 if (document.getElementById('zip').value == '$zip') {
8787 output += payflowproGatewayErrorMsgJs + ' Zip Code.\\r\\n';
8888 }
 89+ if (document.getElementById('state').value == '') {
 90+ output += payflowproGatewayErrorMsgJs + ' State.\\r\\n';
 91+ }
8992
9093 // validate email address
9194 var apos = document.payment.emailAdd.value.indexOf("@");
@@ -348,7 +351,7 @@
349352
350353 $states = statesMenuXML();
351354
352 - $state_opts = Xml::option( '', ' ' );
 355+ $state_opts = Xml::option( '', '' );
353356
354357 // generate dropdown of state opts
355358 foreach ( $states as $value => $state_name ) {

Status & tagging log