diff options
Diffstat (limited to 'skins/common')
-rw-r--r-- | skins/common/sorttable.js | 3 | ||||
-rw-r--r-- | skins/common/wikibits.js | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/skins/common/sorttable.js b/skins/common/sorttable.js index 24877865..229b4c3a 100644 --- a/skins/common/sorttable.js +++ b/skins/common/sorttable.js @@ -55,9 +55,8 @@ function ts_makeSortable(table) { // We have a first row: assume it's the header, and make its contents clickable links for (var i=0;i<firstRow.cells.length;i++) { var cell = firstRow.cells[i]; - var txt = ts_getInnerText(cell); if (cell.className != "unsortable" && cell.className.indexOf("unsortable") == -1) { - cell.innerHTML = txt+' <a href="#" class="sortheader" onclick="ts_resortTable(this);return false;"><span class="sortarrow"><img src="'+ image_path + image_none + '" alt="↓"/></span></a>'; + cell.innerHTML += ' <a href="#" class="sortheader" onclick="ts_resortTable(this);return false;"><span class="sortarrow"><img src="'+ image_path + image_none + '" alt="↓"/></span></a>'; } } if (alternate_row_colors) { diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index afb1fa27..1e8e10ae 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -853,7 +853,7 @@ function getElementsByClassName(oElm, strTagName, oClassNames){ function sortableTables() { if (getElementsByClassName(document, "table", "sortable").length != 0) { - document.write('<script type="text/javascript" src="'+stylepath+'/common/sorttable.js"></script>'); + document.write('<script type="text/javascript" src="'+stylepath+'/common/sorttable.js?1"></script>'); } } |