'jquery.localize' => array(
'scripts' => 'resources/jquery/jquery.localize.js'
),
+ 'jquery.makeCollapsible' => array(
+ 'scripts' => 'resources/jquery/jquery.makeCollapsible.js',
+ 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
+ ),
'jquery.suggestions' => array(
'scripts' => 'resources/jquery/jquery.suggestions.js',
'styles' => 'resources/jquery/jquery.suggestions.css',
),
'mediawiki.util' => array(
'scripts' => 'resources/mediawiki.util/mediawiki.util.js',
- 'dependencies' => array( 'jquery.checkboxShiftClick', 'jquery.client', 'jquery.placeholder' ),
+ 'dependencies' => array( 'jquery.checkboxShiftClick', 'jquery.client', 'jquery.placeholder', 'jquery.makeCollapsible' ),
'debugScripts' => 'resources/mediawiki.util/mediawiki.util.test.js',
),
'mediawiki.action.history' => array(
for ( var i = 0; i < firstRow.cells.length; i++ ) {
var cell = firstRow.cells[i];
if ( (' ' + cell.className + ' ').indexOf(' unsortable ') == -1 ) {
- cell.innerHTML += '<a href="#" class="sortheader" '
+ $(cell).append ( '<a href="#" class="sortheader" '
+ 'onclick="ts_resortTable(this);return false;">'
+ '<span class="sortarrow">'
+ '<img src="'
+ ts_image_path
+ ts_image_none
- + '" alt="↓"/></span></a>';
+ + '" alt="↓"/></span></a>');
}
}
if ( ts_alternate_row_colors ) {
updateTooltipAccessKeys( null );
setupCheckboxShiftClick();
- sortables_init();
+
+ jQuery( document ).ready( sortables_init );
// Run any added-on functions
for ( var i = 0; i < onloadFuncts.length; i++ ) {