mediawiki.checkboxtoggle: Run after document ready
Bug: T131318 Change-Id: I74d7de03e7338affbf7f0013937ec38a30cded27
This commit is contained in:
parent
d2f540f7c3
commit
870c5e28e6
1 changed files with 19 additions and 16 deletions
|
|
@ -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 ) );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue