Index: trunk/phase3/includes/Article.php |
— | — | @@ -2638,8 +2638,12 @@ |
2639 | 2639 | Xml::label( wfMsg( 'deleteotherreason' ), 'wpReason' ) . |
2640 | 2640 | "</td> |
2641 | 2641 | <td class='mw-input'>" . |
2642 | | - Xml::input( 'wpReason', 60, $reason, array( 'type' => 'text', 'maxlength' => '255', |
2643 | | - 'tabindex' => '2', 'id' => 'wpReason' ) ) . |
| 2642 | + Html::input( 'wpReason', $reason, 'text', array( |
| 2643 | + 'maxlength' => '255', |
| 2644 | + 'tabindex' => '2', |
| 2645 | + 'id' => 'wpReason', |
| 2646 | + 'autofocus' |
| 2647 | + ) ) . |
2644 | 2648 | "</td> |
2645 | 2649 | </tr> |
2646 | 2650 | <tr> |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -266,7 +266,10 @@ |
267 | 267 | 'contribs', 'newbie' , 'newbie', $this->opts['contribs'] == 'newbie' ? true : false ) . '<br />' . |
268 | 268 | Xml::radioLabel( wfMsgExt( 'sp-contributions-username', array( 'parsemag' ) ), |
269 | 269 | 'contribs' , 'user', 'user', $this->opts['contribs'] == 'user' ? true : false ) . ' ' . |
270 | | - Xml::input( 'target', 20, $this->opts['target']) . ' '. |
| 270 | + Html::input( 'target', $this->opts['target'], 'text', array( |
| 271 | + 'size' => '20', |
| 272 | + 'required' => '' |
| 273 | + ) + ( $this->opts['target'] ? array() : array( 'autofocus' ) ) ) . ' '. |
271 | 274 | '<span style="white-space: nowrap">' . |
272 | 275 | Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' . |
273 | 276 | Xml::namespaceSelector( $this->opts['namespace'], '' ) . |
Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -154,11 +154,13 @@ |
155 | 155 | {$mIpaddress} |
156 | 156 | </td> |
157 | 157 | <td class='mw-input'>" . |
158 | | - Xml::input( 'wpBlockAddress', 45, $this->BlockAddress, |
159 | | - array( |
160 | | - 'tabindex' => '1', |
161 | | - 'id' => 'mw-bi-target', |
162 | | - 'onchange' => 'updateBlockOptions()' ) ). " |
| 158 | + Html::input( 'wpBlockAddress', $this->BlockAddress, 'text', array( |
| 159 | + 'tabindex' => '1', |
| 160 | + 'id' => 'mw-bi-target', |
| 161 | + 'onchange' => 'updateBlockOptions()', |
| 162 | + 'size' => '45', |
| 163 | + 'required' => '' |
| 164 | + ) + ( $this->BlockAddress ? array() : array( 'autofocus' ) ) ). " |
163 | 165 | </td> |
164 | 166 | </tr> |
165 | 167 | <tr>" |
— | — | @@ -203,8 +205,12 @@ |
204 | 206 | {$mIpbreason} |
205 | 207 | </td> |
206 | 208 | <td class='mw-input'>" . |
207 | | - Xml::input( 'wpBlockReason', 45, $this->BlockReason, |
208 | | - array( 'tabindex' => '5', 'id' => 'mw-bi-reason', 'maxlength'=> '200' ) ) . " |
| 209 | + Html::input( 'wpBlockReason', $this->BlockReason, 'text', array( |
| 210 | + 'tabindex' => '5', |
| 211 | + 'id' => 'mw-bi-reason', |
| 212 | + 'maxlength' => '200', |
| 213 | + 'size' => '45' |
| 214 | + ) + ( $this->BlockAddress ? array( 'autofocus' ) : array() ) ) . " |
209 | 215 | </td> |
210 | 216 | </tr> |
211 | 217 | <tr id='wpAnonOnlyRow'> |
Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php |
— | — | @@ -418,7 +418,10 @@ |
419 | 419 | $f .= Xml::openElement( 'fieldset' ) . |
420 | 420 | Xml::element( 'legend', array(), wfMsg( 'sp-contributions-search' ) ) . |
421 | 421 | Xml::tags( 'label', array( 'for' => 'target' ), wfMsgExt( 'sp-contributions-username', 'parseinline' ) ) . ' ' . |
422 | | - Xml::input( 'target', 20, $options['target']) . ' '. |
| 422 | + Html::input( 'target', $options['target'], 'text', array( |
| 423 | + 'size' => '20', |
| 424 | + 'required' => '' |
| 425 | + ) + ( $options['target'] ? array() : array( 'autofocus' ) ) ) . ' '. |
423 | 426 | Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' . |
424 | 427 | Xml::namespaceSelector( $options['namespace'], '' ) . ' ' . |
425 | 428 | Xml::submitButton( wfMsg( 'sp-contributions-submit' ) ) . |