Tweaks to r19987:
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Feb 2007 18:08:45 +0000 (18:08 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Feb 2007 18:08:45 +0000 (18:08 +0000)
* Don't add an 'id' attribute for custom toolbar buttons where the
  custom array doesn't include an id, for compatibility with
  existing settings.
* Fix corrupted, but previously also incorrect, encoding on regex
  for currencies in sortable table setup. Using \u escape sequences
  for pound and euro; possibly other symbols need to be added?
* Bump $wgStyleVersion

includes/DefaultSettings.php
skins/common/wikibits.js

index fbfd493..1f63f6c 100644 (file)
@@ -1117,7 +1117,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '56';
+$wgStyleVersion = '57';
 
 
 # Server-side caching:
index a093498..7889c39 100644 (file)
@@ -349,7 +349,7 @@ function mwInsertEditButton(parent, item) {
        image.width = 23;
        image.height = 22;
        image.className = "mw-toolbar-editbutton";
-       image.id = item.imageId;
+       if (item.imageId) image.id = item.imageId;
        image.src = item.imageFile;
        image.border = 0;
        image.alt = item.speedTip;
@@ -1084,7 +1084,7 @@ function ts_resortTable(lnk) {
                sortfn = ts_sort_date;
        if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d$/))
                sortfn = ts_sort_date;
-       if (itm.match(/^[$ۢ]/))
+       if (itm.match(/^[\u00a3$\u20ac]/)) // pound dollar euro
                sortfn = ts_sort_currency;
        if (itm.match(/^[\d.,]+\%?$/))
                sortfn = ts_sort_numeric;