mediawiki-extensions-Nuke/ext.nuke.confirm.js
Thiemo Kreuz cfcd65c337 Fix broken message showing {{PLURAL:…}} in plain text
Was this forgotten in I908c1aa?

Bug: T131975
Change-Id: I1b72e5e609d4109a696694e81901754a3fa02b93
2018-12-11 16:53:15 +01:00

15 lines
360 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.message( 'nuke-confirm', pages.length ) );
}
} );
} );
}( mediaWiki, jQuery ) );