(bug 34702) More localised parentheses.
[mediawiki.git] / resources / mediawiki.page / mediawiki.page.ready.js
blob370c3a19c2037df064926455407eb570dac6d779
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 makeCollapsible */
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         /* Add accesskey hints to the tooltips */
22         mw.util.updateTooltipAccessKeys();
24 } );