Page MenuHomeWickedGov Phorge

special.undelete.js
No OneTemporary

Size
865 B
Referenced Files
None
Subscribers
None

special.undelete.js

/*!
* JavaScript for Special:Undelete
*/
( function () {
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'Undelete' ) {
return;
}
$( () => {
const $widget = $( '#wpComment' ).closest( '.oo-ui-widget' );
if ( !$widget.length ) {
// If the user has permission to see only the deleted
// revisions but not restore or the page is not currently
// deleted there'd be no comment field and no checkboxes.
return;
}
const wpComment = OO.ui.infuse( $widget );
const wpCommentList = OO.ui.infuse( $( '#wpCommentList' ).closest( '.oo-ui-widget' ) );
$( '#mw-undelete-invert' ).on( 'click', () => {
$( '.mw-undelete-revlist input[type="checkbox"]' ).prop( 'checked', ( i, val ) => !val );
} );
mw.widgets.visibleCodePointLimitWithDropdown( wpComment, wpCommentList, mw.config.get( 'wgCommentCodePointLimit' ) );
} );
}() );

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 18, 16:52 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
19/df/8b11076c0ec5fcc55e374a0cca84
Default Alt Text
special.undelete.js (865 B)

Event Timeline