Index: trunk/phase3/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | * @return jQuery |
23 | 23 | */ |
24 | 24 | var tableCreate = function( header, data ) { |
25 | | - var $table = $('<table class="sortable"><thead></thead><tbody></tbody></table>'), |
| 25 | + var $table = $('<table class="mw-sortable"><thead></thead><tbody></tbody></table>'), |
26 | 26 | $thead = $table.find('thead'), |
27 | 27 | $tbody = $table.find('tbody'); |
28 | 28 | var $tr = $('<tr>'); |
Index: trunk/phase3/resources/jquery/jquery.tablesorter.js |
— | — | @@ -287,7 +287,7 @@ |
288 | 288 | this.order = 0; |
289 | 289 | this.count = 0; |
290 | 290 | |
291 | | - if ( $( this ).is( '.unsortable' ) ) this.sortDisabled = true; |
| 291 | + if ( $( this ).is( '.unsortable, .mw-unsortable' ) ) this.sortDisabled = true; |
292 | 292 | |
293 | 293 | if ( !this.sortDisabled ) { |
294 | 294 | var $th = $( this ).addClass( table.config.cssHeader ).attr( 'title', msg[1] ); |
Index: trunk/phase3/resources/mediawiki.page/mediawiki.page.ready.js |
— | — | @@ -9,9 +9,9 @@ |
10 | 10 | $( '.mw-collapsible' ).makeCollapsible(); |
11 | 11 | |
12 | 12 | /* Lazy load jquery.tablesorter */ |
13 | | - if ( $( 'table.sortable' ).length ) { |
| 13 | + if ( $( 'table.mw-sortable, table.sortable' ).length ) { |
14 | 14 | mw.loader.using( 'jquery.tablesorter', function() { |
15 | | - $( 'table.sortable' ).tablesorter(); |
| 15 | + $( 'table.mw-sortable, table.sortable' ).tablesorter(); |
16 | 16 | }); |
17 | 17 | } |
18 | 18 | |