diff options
Diffstat (limited to 'resources/mediawiki.special/mediawiki.special.undelete.js')
-rw-r--r-- | resources/mediawiki.special/mediawiki.special.undelete.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/resources/mediawiki.special/mediawiki.special.undelete.js b/resources/mediawiki.special/mediawiki.special.undelete.js index 33b80275..d20aab51 100644 --- a/resources/mediawiki.special/mediawiki.special.undelete.js +++ b/resources/mediawiki.special/mediawiki.special.undelete.js @@ -1,10 +1,11 @@ -/* - * JavaScript for Specical:Undelete +/** + * JavaScript for Special:Undelete */ -jQuery( document ).ready( function( $ ) { - $( '#mw-undelete-invert' ).click( function( e ) { +jQuery( document ).ready( function ( $ ) { + $( '#mw-undelete-invert' ).click( function ( e ) { + $( '#undelete input[type="checkbox"]' ).prop( 'checked', function ( i, val ) { + return !val; + } ); e.preventDefault(); - $( '#undelete' ).find( 'input:checkbox' ) - .prop( 'checked', function( i, val ) { return !val; } ); } ); } ); |