Merge "Fix exception in ApiPageSet"
[mediawiki.git] / resources / mediawiki.page / mediawiki.page.ready.js
blob684f582f2f9e3cd29eaf74161d760846e3438126
1 ( function ( mw, $ ) {
2         $( function () {
3                 var $sortableTables;
5                 /* Emulate placeholder if not supported by browser */
6                 if ( !( 'placeholder' in document.createElement( 'input' ) ) ) {
7                         $( 'input[placeholder]' ).placeholder();
8                 }
10                 /* Enable makeCollapsible */
11                 $( '.mw-collapsible' ).makeCollapsible();
13                 /* Lazy load jquery.tablesorter */
14                 $sortableTables = $( 'table.sortable' );
15                 if ( $sortableTables.length ) {
16                         mw.loader.using( 'jquery.tablesorter', function () {
17                                 $sortableTables.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         } );
28 }( mediaWiki, jQuery ) );