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