mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-12-02 20:06:27 +00:00
1aba9c8d3e
There is no need to have it in the root folder Change-Id: Ifd97e09d6607129c7be52ac28ab3fc5bae909a63
15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
( function () {
|
|
$( function () {
|
|
// Confirm nuke
|
|
// eslint-disable-next-line no-jquery/no-global-selector
|
|
$( 'form[name="nukelist"]' ).on( 'submit', function () {
|
|
var $pages = $( this ).find( 'input[name="pages[]"][type="checkbox"]:checked' );
|
|
if ( $pages.length ) {
|
|
// eslint-disable-next-line no-alert
|
|
return confirm( mw.message( 'nuke-confirm', $pages.length ) );
|
|
}
|
|
} );
|
|
|
|
} );
|
|
}() );
|