Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -17,6 +17,7 @@ |
18 | 18 | // form placeholder values |
19 | 19 | $first = wfMsg( 'payflowpro_gateway-first' ); |
20 | 20 | $last = wfMsg( 'payflowpro_gateway-last' ); |
| 21 | + $street = wfMsg( 'payflowpro_gateway-donor-street' ); |
21 | 22 | $city = wfMsg( 'payflowpro_gateway-donor-city' ); |
22 | 23 | $zip = wfMsg( 'payflowpro_gateway-zip-code' ); |
23 | 24 | $email = wfMsg( 'payflowpro_gateway-donor-email' ); |
— | — | @@ -25,6 +26,7 @@ |
26 | 27 | function loadPlaceholders() { |
27 | 28 | var fname = document.getElementById('fname'); |
28 | 29 | var lname = document.getElementById('lname'); |
| 30 | + var street = document.getElementById('street'); |
29 | 31 | var city = document.getElementById('city'); |
30 | 32 | var zip = document.getElementById('zip'); |
31 | 33 | var email = document.getElementById('emailAdd'); |
— | — | @@ -37,6 +39,10 @@ |
38 | 40 | lname.style.color = '#999999'; |
39 | 41 | lname.value = '$last'; |
40 | 42 | } |
| 43 | + if (street.value == '') { |
| 44 | + street.style.color = '#999999'; |
| 45 | + street.value = '$street'; |
| 46 | + } |
41 | 47 | if (city.value == '') { |
42 | 48 | city.style.color = '#999999'; |
43 | 49 | city.value = '$city'; |
— | — | @@ -217,7 +223,7 @@ |
218 | 224 | $form .= '</tr>'; |
219 | 225 | $form .= '<tr>'; |
220 | 226 | $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-billing-address' ), 'street' ) . '</td>'; |
221 | | - $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \'Street\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
| 227 | + $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-street' ).'\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
222 | 228 | '</td>'; |
223 | 229 | $form .= '</tr>'; |
224 | 230 | |