mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 20:09:37 +00:00
5b555c94f4
Change-Id: I72b0b185ea5f48df06e680b9a61a967c6f9c60e8
15 lines
356 B
JavaScript
15 lines
356 B
JavaScript
( function ( mw, $ ) {
|
|
$( function () {
|
|
/*global confirm */
|
|
|
|
// Confirm nuke
|
|
$( 'form[name="nukelist"]' ).on( 'submit', function () {
|
|
var pages = $( this ).find( 'input[name="pages[]"][type="checkbox"]:checked' );
|
|
if ( pages.length ) {
|
|
return confirm( mw.msg( 'nuke-confirm', pages.length ) );
|
|
}
|
|
} );
|
|
|
|
} );
|
|
}( mediaWiki, jQuery ) );
|