Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php |
— | — | @@ -143,11 +143,13 @@ |
144 | 144 | $form .= Xml::closeElement( 'form' ); // close form 'payment' |
145 | 145 | $form .= <<<EOT |
146 | 146 | <script type="text/javascript"> |
147 | | -if (document.getElementById('fname').value == '') { |
| 147 | +var fname = document.getElementById('fname'); |
| 148 | +var lname = document.getElementById('lname'); |
| 149 | +if (fname.value == '') { |
148 | 150 | fname.style.color = '#999999'; |
149 | 151 | fname.value = 'First'; |
150 | 152 | } |
151 | | -if (document.getElementById('lname').value == '') { |
| 153 | +if (lname.value == '') { |
152 | 154 | lname.style.color = '#999999'; |
153 | 155 | lname.value = 'Last'; |
154 | 156 | } |