mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-16 04:21:44 +00:00
18 lines
529 B
JavaScript
18 lines
529 B
JavaScript
/**
|
|
* JavasSript for the Nuke MediaWiki extension.
|
|
* @see https://www.mediawiki.org/wiki/Extension:Nuke
|
|
*
|
|
* @licence GNU GPL v2 or later
|
|
* @author Jeroen De Dauw <jeroendedauw at gmail dot com>
|
|
*/
|
|
|
|
(function( $, mw ) { $( document ).ready( function() {
|
|
|
|
function selectPages( check ) {
|
|
$( 'input[type=checkbox]' ).prop( 'checked', check )
|
|
}
|
|
|
|
$( '#toggleall' ).click( function(){ selectPages( true ); } );
|
|
$( '#togglenone' ).click( function(){ selectPages( false ); } );
|
|
|
|
} ); })( window.jQuery, window.mediaWiki ); |