These might or might not be useful, but if they are useful they should be added in PHP, not JavaScript. There have been reports of significant slowness for large tables due to the row numbering. This also fixes a bug where setting ts_alternate_row_colors = false would only work until the user tried sorting the table.
Patch by Mike Horvath.
* Jeremy Baron
* Louperivois
* Max Semenik
+* Mike Horvath
* Mormegil
* RememberTheDot
* Soxred93
Use a separate database connection for the objectcache table to avoid
long-lasting locks on that table.
* Respect file restrictions in the file history list
+* (bug 15399) Odd/even classes on sortable tables' rows could be slow for large
+ tables, and have been disabled by default.
=== API changes in 1.14 ===
var ts_image_down = "sort_down.gif";
var ts_image_none = "sort_none.gif";
var ts_europeandate = wgContentLanguage != "en"; // The non-American-inclined can change to "true"
-var ts_alternate_row_colors = true;
+var ts_alternate_row_colors = false;
var SORT_COLUMN_INDEX;
function sortables_init() {
}
span.innerHTML = arrowHTML;
- ts_alternate(table);
+ if (ts_alternate_row_colors) {
+ ts_alternate(table);
+ }
}
function ts_dateToSortKey(date) {