mediawiki-extensions-Nuke/ext.nuke.js
grunny f83cade885 Make Nuke pass jshint
Adds a basic .jshintrc based on the common settings from the coding
conventions page and removes unused variable mw.

Bug: 61616
Change-Id: I579f0528c3c57de46449457087f441c88229379b
2014-04-06 18:46:12 +10:00

26 lines
539 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 ( $ ) {
'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 ) );