Merge "Exclude redirects from Special:Fewestrevisions"
[lhc/web/wiklou.git] / resources / src / mediawiki.misc-authed-ooui / special.movePage.js
1 /*!
2 * JavaScript for Special:MovePage
3 */
4 ( function () {
5
6 if ( mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'Movepage' ) {
7 return;
8 }
9
10 $( function () {
11 var summaryCodePointLimit = mw.config.get( 'wgCommentCodePointLimit' ),
12 summaryByteLimit = mw.config.get( 'wgCommentByteLimit' ),
13 wpReason = OO.ui.infuse( $( '#wpReason' ) );
14
15 // Infuse for pretty dropdown
16 OO.ui.infuse( $( '#wpNewTitle' ) );
17 // Limit to bytes or UTF-8 codepoints, depending on MediaWiki's configuration
18 if ( summaryCodePointLimit ) {
19 mw.widgets.visibleCodePointLimit( wpReason, summaryCodePointLimit );
20 } else if ( summaryByteLimit ) {
21 mw.widgets.visibleByteLimit( wpReason, summaryByteLimit );
22 }
23 } );
24 }() );