mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-14 11:18:16 +00:00
55ff92babe
* eslint-config-wikimedia: 0.12.0 → 0.15.0 * grunt-eslint: 21.0.0 → 22.0.0 Additional changes: * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: I8ad305554b6af450f1c79fe1519ef735c9226af5
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 ) );
|
|
}
|
|
} );
|
|
|
|
} );
|
|
}() );
|