Merge "resources: Strip '$' and 'mw' from file closures"
[lhc/web/wiklou.git] / resources / src / mediawiki.special.movePage.js
1 /*!
2 * JavaScript for Special:MovePage
3 */
4 ( function () {
5 $( function () {
6 var summaryCodePointLimit = mw.config.get( 'wgCommentCodePointLimit' ),
7 summaryByteLimit = mw.config.get( 'wgCommentByteLimit' ),
8 wpReason = OO.ui.infuse( $( '#wpReason' ) );
9
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 );
17 }
18 } );
19 }() );