wiki.techinc.nl/resources/mediawiki.page/mediawiki.page.ready.js

25 lines
654 B
JavaScript
Raw Normal View History

jQuery( document ).ready( function( $ ) {
/* Emulate placeholder if not supported by browser */
if ( !( 'placeholder' in document.createElement( 'input' ) ) ) {
$( 'input[placeholder]' ).placeholder();
}
/* Enable makeCollapsible */
$( '.mw-collapsible' ).makeCollapsible();
/* Lazy load jquery.tablesorter */
2011-07-04 23:36:54 +00:00
if ( $( 'table.sortable' ).length ) {
mw.loader.using( 'jquery.tablesorter', function() {
2011-07-04 23:36:54 +00:00
$( 'table.sortable' ).tablesorter();
});
}
/* Enable CheckboxShiftClick */
$( 'input[type=checkbox]:not(.noshiftselect)' ).checkboxShiftClick();
/* Add accesskey hints to the tooltips */
mw.util.updateTooltipAccessKeys();
} );