r76779 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76778‎ | r76779 | r76780 >
Date:04:18, 16 November 2010
Author:kaldari
Status:deferred
Tags:
Comment:
fixing placeholders
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -17,6 +17,7 @@
1818 // form placeholder values
1919 $first = wfMsg( 'payflowpro_gateway-first' );
2020 $last = wfMsg( 'payflowpro_gateway-last' );
 21+ $street = wfMsg( 'payflowpro_gateway-donor-street' );
2122 $city = wfMsg( 'payflowpro_gateway-donor-city' );
2223 $zip = wfMsg( 'payflowpro_gateway-zip-code' );
2324 $email = wfMsg( 'payflowpro_gateway-donor-email' );
@@ -25,6 +26,7 @@
2627 function loadPlaceholders() {
2728 var fname = document.getElementById('fname');
2829 var lname = document.getElementById('lname');
 30+ var street = document.getElementById('street');
2931 var city = document.getElementById('city');
3032 var zip = document.getElementById('zip');
3133 var email = document.getElementById('emailAdd');
@@ -37,6 +39,10 @@
3840 lname.style.color = '#999999';
3941 lname.value = '$last';
4042 }
 43+ if (street.value == '') {
 44+ street.style.color = '#999999';
 45+ street.value = '$street';
 46+ }
4147 if (city.value == '') {
4248 city.style.color = '#999999';
4349 city.value = '$city';
@@ -217,7 +223,7 @@
218224 $form .= '</tr>';
219225 $form .= '<tr>';
220226 $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' ) ) .
222228 '</td>';
223229 $form .= '</tr>';
224230

Status & tagging log