mediawiki-extensions-Nuke/ext.nuke.js
Siebrand Mazeland 28a2e6bbe2 Use strict, add semi-colon and reformat code
Change-Id: I05eec5c490539fda3d423777242fd50a7b78462d
2012-10-20 19:42:32 +02:00

26 lines
569 B
JavaScript

/**
* JavaScript 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 ) {
'use strict';
$( 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 );