2019-05-07 00:20:57 +00:00
|
|
|
( function () {
|
2018-01-21 21:25:22 +00:00
|
|
|
$( function () {
|
2016-12-28 08:15:54 +00:00
|
|
|
// Confirm nuke
|
2019-05-07 00:20:57 +00:00
|
|
|
// eslint-disable-next-line no-jquery/no-global-selector
|
2016-12-28 08:15:54 +00:00
|
|
|
$( 'form[name="nukelist"]' ).on( 'submit', function () {
|
2020-01-08 01:46:43 +00:00
|
|
|
var $pages = $( this ).find( 'input[name="pages[]"][type="checkbox"]:checked' );
|
|
|
|
if ( $pages.length ) {
|
2019-05-07 00:20:57 +00:00
|
|
|
// eslint-disable-next-line no-alert
|
2022-07-24 18:43:29 +00:00
|
|
|
return confirm( mw.msg( 'nuke-confirm', $pages.length ) );
|
2016-12-28 08:15:54 +00:00
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
|
|
|
} );
|
2019-05-07 00:20:57 +00:00
|
|
|
}() );
|