/** * JavaScript for the Nuke MediaWiki extension. * @see https://www.mediawiki.org/wiki/Extension:Nuke * * @licence GNU GPL v2 or later * @author Jeroen De Dauw */ ( function ( $ ) { 'use strict'; $( document ).ready( function () { function selectPages( check ) { $( 'input[type=checkbox]' ).prop( 'checked', check ); } $( '#toggleall' ).click( function () { selectPages( true ); } ); $( '#togglenone' ).click( function () { selectPages( false ); } ); } ); }( jQuery ) );