Localisation updates for core and extension messages from translatewiki.net
[mediawiki.git] / resources / mediawiki.page / mediawiki.page.ready.js
blob783db3ef62d6c2d5e779a6971489eb129cd56d1c
1 jQuery( document ).ready( function( $ ) {
3         /* Initialize utilities (messageBoxNew, profile, tooltip access keys, TOC etc.) */
4         mw.util.init();
6         /* Emulate placeholder if not supported by browser */
7         if ( !( 'placeholder' in document.createElement( 'input' ) ) ) {
8                 $( 'input[placeholder]' ).placeholder();
9         }
11         /* Enable makeCollapsible */
12         $( '.mw-collapsible' ).makeCollapsible();
14         /* Lazy load jquery.tablesorter */
15         if ( $( 'table.sortable' ).length ) {
16                 mw.loader.using( 'jquery.tablesorter', function() {
17                         $( 'table.sortable' ).tablesorter();
18                 });
19         }
21         /* Enable CheckboxShiftClick */
22         $( 'input[type=checkbox]:not(.noshiftselect)' ).checkboxShiftClick();
24         /* Add accesskey hints to the tooltips */
25         mw.util.updateTooltipAccessKeys();
27 } );