| 1 | /*! |
| 2 | * JavaScript for Special:MovePage |
| 3 | */ |
| 4 | ( function () { |
| 5 | |
| 6 | if ( mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'Movepage' ) { |
| 7 | return; |
| 8 | } |
| 9 | |
| 10 | $( () => { |
| 11 | const wpReason = OO.ui.infuse( $( '#wpReason' ) ); |
| 12 | |
| 13 | // Infuse for pretty dropdown |
| 14 | OO.ui.infuse( $( '#wpNewTitle' ) ); |
| 15 | |
| 16 | const wpReasonList = OO.ui.infuse( $( '#wpReasonList' ).closest( '.oo-ui-widget' ) ); |
| 17 | |
| 18 | mw.widgets.visibleCodePointLimitWithDropdown( wpReason, wpReasonList, mw.config.get( 'wgCommentCodePointLimit' ) ); |
| 19 | } ); |
| 20 | }() ); |