2 * JavaScript for Special:Undelete
6 var summaryCodePointLimit
= mw
.config
.get( 'wgCommentCodePointLimit' ),
7 summaryByteLimit
= mw
.config
.get( 'wgCommentByteLimit' ),
8 wpComment
= OO
.ui
.infuse( $( '#wpComment' ).closest( '.oo-ui-widget' ) );
10 $( '#mw-undelete-invert' ).on( 'click', function () {
11 $( '.mw-undelete-revlist input[type="checkbox"]' ).prop( 'checked', function ( i
, val
) {
16 // Limit to bytes or UTF-8 codepoints, depending on MediaWiki's configuration
17 if ( summaryCodePointLimit
) {
18 mw
.widgets
.visibleCodePointLimit( wpComment
, summaryCodePointLimit
);
19 } else if ( summaryByteLimit
) {
20 mw
.widgets
.visibleByteLimit( wpComment
, summaryByteLimit
);