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();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Enable makeCollapse */
|
|
|
|
|
$( '.mw-collapsible' ).makeCollapsible();
|
|
|
|
|
|
|
|
|
|
/* Lazy load jquery.tablesorter */
|
2011-06-23 21:26:21 +00:00
|
|
|
if ( $( 'table.mw-sortable, table.sortable' ).length ) {
|
2011-06-22 21:27:12 +00:00
|
|
|
mw.loader.using( 'jquery.tablesorter', function() {
|
2011-06-23 21:26:21 +00:00
|
|
|
$( 'table.mw-sortable, table.sortable' ).tablesorter();
|
2011-06-22 21:27:12 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Enable CheckboxShiftClick */
|
|
|
|
|
$( 'input[type=checkbox]:not(.noshiftselect)' ).checkboxShiftClick();
|
|
|
|
|
|
|
|
|
|
} );
|