Merge "Set default type attribute for button html elements"
[lhc/web/wiklou.git] / resources / mediawiki.page / mediawiki.page.ready.js
1 ( function ( mw, $ ) {
2 $( function () {
3 var $sortableTables;
4
5 /* Emulate placeholder if not supported by browser */
6 if ( !( 'placeholder' in document.createElement( 'input' ) ) ) {
7 $( 'input[placeholder]' ).placeholder();
8 }
9
10 /* Enable makeCollapsible */
11 $( '.mw-collapsible' ).makeCollapsible();
12
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 }
20
21 /* Enable CheckboxShiftClick */
22 $( 'input[type=checkbox]:not(.noshiftselect)' ).checkboxShiftClick();
23
24 /* Add accesskey hints to the tooltips */
25 mw.util.updateTooltipAccessKeys();
26
27 } );
28 }( mediaWiki, jQuery ) );