mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 03:35:39 +00:00
eca4be01de
Change-Id: Icd36451d4d47836b773133a55c07eca3b58700a2
15 lines
411 B
JavaScript
15 lines
411 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 ) );
|
|
}
|
|
} );
|
|
|
|
} );
|
|
}() );
|