From: Aryeh Gregor Date: Tue, 5 Dec 2006 08:45:16 +0000 (+0000) Subject: Add pretty arrow images from SMW for sorttable instead of Unicode arrow characters... X-Git-Tag: 1.31.0-rc.0~54984 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=68acd1e8a53655efb1801c07244a753ca44511b9;p=lhc%2Fweb%2Fwiklou.git Add pretty arrow images from SMW for sorttable instead of Unicode arrow characters. Currently the same for all skins; any clever ideas on how to make them different, maybe? The path should be overridable in other JS files, anyway. --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 546b25bd6a..9499ae8f8c 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1048,7 +1048,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '30'; +$wgStyleVersion = '31'; # Server-side caching: diff --git a/skins/common/sort_down.gif b/skins/common/sort_down.gif new file mode 100644 index 0000000000..5ff08160ca Binary files /dev/null and b/skins/common/sort_down.gif differ diff --git a/skins/common/sort_none.gif b/skins/common/sort_none.gif new file mode 100644 index 0000000000..6bb028242d Binary files /dev/null and b/skins/common/sort_none.gif differ diff --git a/skins/common/sort_up.gif b/skins/common/sort_up.gif new file mode 100644 index 0000000000..5300296859 Binary files /dev/null and b/skins/common/sort_up.gif differ diff --git a/skins/common/sorttable.js b/skins/common/sorttable.js index 1752f08463..ea66e7cf01 100644 --- a/skins/common/sorttable.js +++ b/skins/common/sorttable.js @@ -6,6 +6,9 @@ addEvent(window, "load", sortables_init); var SORT_COLUMN_INDEX; +var NO_ARROW = stylepath+'/common/sort_none.gif'; +var UP_ARROW = stylepath+'/common/sort_up.gif'; +var DOWN_ARROW = stylepath+'/common/sort_down.gif'; function sortables_init() { var idnum = 0; @@ -30,12 +33,12 @@ function ts_makeSortable(table) { var firstRow = table.rows[0]; } if (!firstRow) return; - + // We have a first row: assume it's the header, and make its contents clickable links for (var i=0;i'; + cell.innerHTML = txt+'↕'; } } @@ -61,16 +64,15 @@ function ts_getInnerText(el) { } function ts_resortTable(lnk) { - // get the span - var span; + // get the arrow image + var img; for (var ci=0;ci