Revert r90678 per CR
[mediawiki.git] / resources / mediawiki.page / mediawiki.page.ready.js
blobc9f4ad4077f318c8ee43f3c5ab0af3544f6655eb
1 jQuery( document ).ready( function( $ ) {
3         /* Emulate placeholder if not supported by browser */
4         if ( !( 'placeholder' in document.createElement( 'input' ) ) ) {
5                 $( 'input[placeholder]' ).placeholder();
6         }
8         /* Enable makeCollapse */
9         $( '.mw-collapsible' ).makeCollapsible();
11         /* Lazy load jquery.tablesorter */
12         if ( $( 'table.sortable' ).length ) {
13                 mw.loader.using( 'jquery.tablesorter', function() {
14                         $( 'table.sortable' ).tablesorter();
15                 });
16         }
18         /* Enable CheckboxShiftClick */
19         $( 'input[type=checkbox]:not(.noshiftselect)' ).checkboxShiftClick();
21 } );