this.order = 0;
this.count = 0;
- if ( $( this ).is( '.unsortable' ) ) this.sortDisabled = true;
+ if ( $( this ).is( '.unsortable, .mw-unsortable' ) ) this.sortDisabled = true;
if ( !this.sortDisabled ) {
var $th = $( this ).addClass( table.config.cssHeader ).attr( 'title', msg[1] );
$( '.mw-collapsible' ).makeCollapsible();
/* Lazy load jquery.tablesorter */
- if ( $( 'table.sortable' ).length ) {
+ if ( $( 'table.mw-sortable, table.sortable' ).length ) {
mw.loader.using( 'jquery.tablesorter', function() {
- $( 'table.sortable' ).tablesorter();
+ $( 'table.mw-sortable, table.sortable' ).tablesorter();
});
}
* @return jQuery
*/
var tableCreate = function( header, data ) {
- var $table = $('<table class="sortable"><thead></thead><tbody></tbody></table>'),
+ var $table = $('<table class="mw-sortable"><thead></thead><tbody></tbody></table>'),
$thead = $table.find('thead'),
$tbody = $table.find('tbody');
var $tr = $('<tr>');