* 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
* to ensure that client-side caches don't keep obsolete copies of global
* styles.
*/
-$wgStyleVersion = '56';
+$wgStyleVersion = '57';
# Server-side caching:
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;
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;