Merge "phpunit: Don't override --bootstrap if supplied"
[mediawiki.git] / resources / src / mediawiki.misc-authed-ooui / action.delete.js
blob6aa96c3ed5703605daa23cdd16861c7c3f42ff3c
1 /*!
2  * JavaScript for action=delete
3  */
4 ( function () {
5         if ( mw.config.get( 'wgAction' ) !== 'delete' ) {
6                 return;
7         }
9         $( () => {
10                 const reasonList = OO.ui.infuse( $( '#wpDeleteReasonList' ) ),
11                         reason = OO.ui.infuse( $( '#wpReason' ) );
13                 mw.widgets.visibleCodePointLimitWithDropdown( reason, reasonList, mw.config.get( 'wgCommentCodePointLimit' ) );
14         } );
15 }() );