1 jQuery( document ).ready( function( $ ) {
3 /* Emulate placeholder if not supported by browser */
4 if ( !( 'placeholder' in document.createElement( 'input' ) ) ) {
5 $( 'input[placeholder]' ).placeholder();
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();
18 /* Enable CheckboxShiftClick */
19 $( 'input[type=checkbox]:not(.noshiftselect)' ).checkboxShiftClick();
21 /* Add accesskey hints to the tooltips */
22 mw.util.updateTooltipAccessKeys();