Merge "phpunit: Don't override --bootstrap if supplied"
[mediawiki.git] / resources / src / mediawiki.misc-authed-ooui / special.movePage.js
blob5f8e5e5b3cf82e4fb2dc040265a76b5afcdf2a5d
1 /*!
2  * JavaScript for Special:MovePage
3  */
4 ( function () {
6         if ( mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'Movepage' ) {
7                 return;
8         }
10         $( () => {
11                 const wpReason = OO.ui.infuse( $( '#wpReason' ) );
13                 // Infuse for pretty dropdown
14                 OO.ui.infuse( $( '#wpNewTitle' ) );
16                 const wpReasonList = OO.ui.infuse( $( '#wpReasonList' ).closest( '.oo-ui-widget' ) );
18                 mw.widgets.visibleCodePointLimitWithDropdown( wpReason, wpReasonList, mw.config.get( 'wgCommentCodePointLimit' ) );
19         } );
20 }() );