2 * JavaScript for Special:MovePage
6 if ( mw
.config
.get( 'wgCanonicalSpecialPageName' ) !== 'Movepage' ) {
11 var summaryCodePointLimit
= mw
.config
.get( 'wgCommentCodePointLimit' ),
12 summaryByteLimit
= mw
.config
.get( 'wgCommentByteLimit' ),
13 wpReason
= OO
.ui
.infuse( $( '#wpReason' ) );
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
);