2 * JavaScript for Special:MovePage
6 var summaryCodePointLimit
= mw
.config
.get( 'wgCommentCodePointLimit' ),
7 summaryByteLimit
= mw
.config
.get( 'wgCommentByteLimit' ),
8 wpReason
= OO
.ui
.infuse( $( '#wpReason' ) );
10 // Infuse for pretty dropdown
11 OO
.ui
.infuse( $( '#wpNewTitle' ) );
12 // Limit to bytes or UTF-8 codepoints, depending on MediaWiki's configuration
13 if ( summaryCodePointLimit
) {
14 mw
.widgets
.visibleCodePointLimit( wpReason
, summaryCodePointLimit
);
15 } else if ( summaryByteLimit
) {
16 mw
.widgets
.visibleByteLimit( wpReason
, summaryByteLimit
);
18 // Infuse for nicer "help" popup
19 if ( $( '#wpMovetalk-field' ).length
) {
20 OO
.ui
.infuse( $( '#wpMovetalk-field' ) );
23 }( mediaWiki
, jQuery
) );