Use CSS rather than hardcoded nbsps to add space before the sorting arrows in Sortabl...
authorHappy-melon <happy-melon@users.mediawiki.org>
Thu, 29 Oct 2009 14:15:20 +0000 (14:15 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Thu, 29 Oct 2009 14:15:20 +0000 (14:15 +0000)
includes/DefaultSettings.php
skins/common/shared.css
skins/common/wikibits.js

index 99c0d88..439a08f 100644 (file)
@@ -1605,7 +1605,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '249';
+$wgStyleVersion = '250';
 
 
 # Server-side caching:
index c4fcb42..9409ee4 100644 (file)
@@ -815,3 +815,8 @@ td.mw-enhanced-rc {
        background-position: middle middle;
        background-repeat: no-repeat;
 }
+
+/* Sort arrows added by SortableTables */
+a.sortheader {
+       margin: 0 0.3em;
+}
index 188a438..0485cdf 100644 (file)
@@ -534,8 +534,7 @@ function ts_makeSortable(table) {
        for (var i = 0; i < firstRow.cells.length; i++) {
                var cell = firstRow.cells[i];
                if ((" "+cell.className+" ").indexOf(" unsortable ") == -1) {
-                       cell.innerHTML += '&nbsp;&nbsp;'
-                               + '<a href="#" class="sortheader" '
+                       cell.innerHTML += '<a href="#" class="sortheader" '
                                + 'onclick="ts_resortTable(this);return false;">'
                                + '<span class="sortarrow">'
                                + '<img src="'