mediawiki.checkboxtoggle: Run after document ready

Bug: T131318
Change-Id: I74d7de03e7338affbf7f0013937ec38a30cded27
This commit is contained in:
Kunal Mehta 2016-06-09 10:31:20 -07:00 committed by Krinkle
parent d2f540f7c3
commit 870c5e28e6

View file

@ -12,6 +12,7 @@
( function ( mw, $ ) { ( function ( mw, $ ) {
'use strict'; 'use strict';
$( function () {
var $checkboxes = $( 'li input[type=checkbox]' ); var $checkboxes = $( 'li input[type=checkbox]' );
function selectAll( check ) { function selectAll( check ) {
@ -33,5 +34,7 @@
e.preventDefault(); e.preventDefault();
} ); } );
} );
}( mediaWiki, jQuery ) ); }( mediaWiki, jQuery ) );