| 1 | /*! |
| 2 | * JavaScript for action=delete |
| 3 | */ |
| 4 | ( function () { |
| 5 | if ( mw.config.get( 'wgAction' ) !== 'delete' ) { |
| 6 | return; |
| 7 | } |
| 8 | |
| 9 | $( () => { |
| 10 | const reasonList = OO.ui.infuse( $( '#wpDeleteReasonList' ) ), |
| 11 | reason = OO.ui.infuse( $( '#wpReason' ) ); |
| 12 | |
| 13 | mw.widgets.visibleCodePointLimitWithDropdown( reason, reasonList, mw.config.get( 'wgCommentCodePointLimit' ) ); |
| 14 | } ); |
| 15 | }() ); |