r80551 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80550‎ | r80551 | r80552 >
Date:02:37, 19 January 2011
Author:kaldari
Status:deferred
Tags:
Comment:
fixing placeholder problem for people named First Last
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/Form.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/OneStepTwoColumn.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter7.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumn.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnPremiumUS.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter7.php
@@ -17,8 +17,8 @@
1818 global $wgOut;
1919 // form placeholder values
2020 $other = wfMsg( 'payflowpro_gateway-other' );
21 - $first = wfMsg( 'payflowpro_gateway-first' );
22 - $last = wfMsg( 'payflowpro_gateway-last' );
 21+ $first = wfMsg( 'payflowpro_gateway-donor-fname' );
 22+ $last = wfMsg( 'payflowpro_gateway-donor-lname' );
2323 $street = wfMsg( 'payflowpro_gateway-donor-street' );
2424 $city = wfMsg( 'payflowpro_gateway-donor-city' );
2525 $zip = wfMsg( 'payflowpro_gateway-zip-code' );
@@ -294,8 +294,8 @@
295295 $form .= '</tr>';
296296 $form .= '<tr>';
297297 $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>';
298 - $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-first' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
299 - Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-last' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
 298+ $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
 299+ Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
300300 $form .= "</tr>";
301301
302302 // street
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/Form.php
@@ -549,8 +549,8 @@
550550 $form .= '</tr>';
551551 $form .= '<tr>';
552552 $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-name' ), 'fname' ) . '</td>';
553 - $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-first' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
554 - Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-last' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
 553+ $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
 554+ Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
555555 $form .= "</tr>";
556556 return $form;
557557 }
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumn.php
@@ -16,8 +16,8 @@
1717 public function loadPlaceholders() {
1818 global $wgOut;
1919 // form placeholder values
20 - $first = wfMsg( 'payflowpro_gateway-first' );
21 - $last = wfMsg( 'payflowpro_gateway-last' );
 20+ $first = wfMsg( 'payflowpro_gateway-donor-fname' );
 21+ $last = wfMsg( 'payflowpro_gateway-donor-lname' );
2222 $js = <<<EOT
2323 <script type="text/javascript">
2424 function loadPlaceholders() {
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -15,8 +15,8 @@
1616 public function loadPlaceholders() {
1717 global $wgOut;
1818 // form placeholder values
19 - $first = wfMsg( 'payflowpro_gateway-first' );
20 - $last = wfMsg( 'payflowpro_gateway-last' );
 19+ $first = wfMsg( 'payflowpro_gateway-donor-fname' );
 20+ $last = wfMsg( 'payflowpro_gateway-donor-lname' );
2121 $street = wfMsg( 'payflowpro_gateway-donor-street' );
2222 $city = wfMsg( 'payflowpro_gateway-donor-city' );
2323 $zip = wfMsg( 'payflowpro_gateway-zip-code' );
@@ -274,8 +274,8 @@
275275 $form .= '</tr>';
276276 $form .= '<tr>';
277277 $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>';
278 - $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-first' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
279 - Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-last' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
 278+ $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
 279+ Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
280280 $form .= "</tr>";
281281
282282 // street
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnPremiumUS.php
@@ -15,8 +15,8 @@
1616 public function loadPlaceholders() {
1717 global $wgOut;
1818 // form placeholder values
19 - $first = wfMsg( 'payflowpro_gateway-first' );
20 - $last = wfMsg( 'payflowpro_gateway-last' );
 19+ $first = wfMsg( 'payflowpro_gateway-donor-fname' );
 20+ $last = wfMsg( 'payflowpro_gateway-donor-lname' );
2121 $street = wfMsg( 'payflowpro_gateway-donor-street' );
2222 $city = wfMsg( 'payflowpro_gateway-donor-city' );
2323 $zip = wfMsg( 'payflowpro_gateway-zip-code' );
@@ -252,8 +252,8 @@
253253 $form .= '</tr>';
254254 $form .= '<tr>';
255255 $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>';
256 - $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-first' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
257 - Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-last' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
 256+ $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
 257+ Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
258258 $form .= "</tr>";
259259
260260 // street
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/OneStepTwoColumn.php
@@ -22,8 +22,8 @@
2323 public function loadPlaceholders() {
2424 global $wgOut;
2525 // form placeholder values
26 - $first = wfMsg( 'payflowpro_gateway-first' );
27 - $last = wfMsg( 'payflowpro_gateway-last' );
 26+ $first = wfMsg( 'payflowpro_gateway-donor-fname' );
 27+ $last = wfMsg( 'payflowpro_gateway-donor-lname' );
2828 $other = wfMsg( 'payflowpro_gateway-other' );
2929 $js = <<<EOT
3030 <script type="text/javascript">

Status & tagging log