Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -620,13 +620,13 @@ |
621 | 621 | for ( var i = 0; i < firstRow.cells.length; i++ ) { |
622 | 622 | var cell = firstRow.cells[i]; |
623 | 623 | if ( (' ' + cell.className + ' ').indexOf(' unsortable ') == -1 ) { |
624 | | - cell.innerHTML += '<a href="#" class="sortheader" ' |
| 624 | + $(cell).append ( '<a href="#" class="sortheader" ' |
625 | 625 | + 'onclick="ts_resortTable(this);return false;">' |
626 | 626 | + '<span class="sortarrow">' |
627 | 627 | + '<img src="' |
628 | 628 | + ts_image_path |
629 | 629 | + ts_image_none |
630 | | - + '" alt="↓"/></span></a>'; |
| 630 | + + '" alt="↓"/></span></a>'); |
631 | 631 | } |
632 | 632 | } |
633 | 633 | if ( ts_alternate_row_colors ) { |
— | — | @@ -1041,8 +1041,9 @@ |
1042 | 1042 | |
1043 | 1043 | updateTooltipAccessKeys( null ); |
1044 | 1044 | setupCheckboxShiftClick(); |
1045 | | - sortables_init(); |
1046 | 1045 | |
| 1046 | + jQuery( document ).ready( sortables_init ); |
| 1047 | + |
1047 | 1048 | // Run any added-on functions |
1048 | 1049 | for ( var i = 0; i < onloadFuncts.length; i++ ) { |
1049 | 1050 | onloadFuncts[i](); |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -78,6 +78,10 @@ |
79 | 79 | 'jquery.localize' => array( |
80 | 80 | 'scripts' => 'resources/jquery/jquery.localize.js' |
81 | 81 | ), |
| 82 | + 'jquery.makeCollapsible' => array( |
| 83 | + 'scripts' => 'resources/jquery/jquery.makeCollapsible.js', |
| 84 | + 'styles' => 'resources/jquery/jquery.makeCollapsible.css', |
| 85 | + ), |
82 | 86 | 'jquery.suggestions' => array( |
83 | 87 | 'scripts' => 'resources/jquery/jquery.suggestions.js', |
84 | 88 | 'styles' => 'resources/jquery/jquery.suggestions.css', |
— | — | @@ -345,7 +349,7 @@ |
346 | 350 | ), |
347 | 351 | 'mediawiki.util' => array( |
348 | 352 | 'scripts' => 'resources/mediawiki.util/mediawiki.util.js', |
349 | | - 'dependencies' => array( 'jquery.checkboxShiftClick', 'jquery.client', 'jquery.placeholder' ), |
| 353 | + 'dependencies' => array( 'jquery.checkboxShiftClick', 'jquery.client', 'jquery.placeholder', 'jquery.makeCollapsible' ), |
350 | 354 | 'debugScripts' => 'resources/mediawiki.util/mediawiki.util.test.js', |
351 | 355 | ), |
352 | 356 | 'mediawiki.action.history' => array( |