Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -27,6 +27,7 @@ |
28 | 28 | used in Tiff files. |
29 | 29 | * When translcuding a special page, do not let it interpret url parameters. |
30 | 30 | * (bug 28887) Special page classes are no longer re-used during 1 request. |
| 31 | +* New title field of Special:MovePage is now length limited on client side. |
31 | 32 | |
32 | 33 | === API changes in 1.19 === |
33 | 34 | |
Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -229,7 +229,8 @@ |
230 | 230 | Xml::label( wfMsg( 'newtitle' ), 'wpNewTitle' ) . |
231 | 231 | "</td> |
232 | 232 | <td class='mw-input'>" . |
233 | | - Xml::input( 'wpNewTitle', 40, $wgContLang->recodeForEdit( $newTitle->getPrefixedText() ), array( 'type' => 'text', 'id' => 'wpNewTitle' ) ) . |
| 233 | + Xml::input( 'wpNewTitle', 40, $wgContLang->recodeForEdit( $newTitle->getPrefixedText() ), array( 'type' => 'text', 'id' => 'wpNewTitle', 'maxlength' => 255 ) ) . |
| 234 | + // maxLength enforced in JS. |
234 | 235 | Html::hidden( 'wpOldTitle', $this->oldTitle->getPrefixedText() ) . |
235 | 236 | "</td> |
236 | 237 | </tr> |
Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.movePage.js |
— | — | @@ -2,4 +2,5 @@ |
3 | 3 | |
4 | 4 | jQuery( function( $ ) { |
5 | 5 | $( '#wpReason' ).byteLimit(); |
| 6 | + $( '#wpNewTitle' ).byteLimit(); |
6 | 7 | }); |