wiki.techinc.nl/includes/resourceloader
Leo Koppelkamm 7d6ddfe836 Completely rewritten table sorting script.
Fixes Bug 8028, Bug 8115, Bug 15406, Bug 17141, Bug 8732

1. Sites can specify custom collations.
The script accepts an object "tableSorterCollation" which contains a lookup
table, how specific characters should be treated.
For example, after setting "tableSorterCollation={'ä':'ae', 'ß':'ss'};" in the
site's common.js any string containing an ä or Ä will be sorted as if it were a
'ae'.

2. Table rows can be forced to use a specific data type.
By setting class="sort-{Parsername}", the row will be parsed with the specified
algorithm. class="sort-date" would force date sorting etc.
The following parsers are available: text, IPAddress, number, url, currency,
date, isoDate, usLongDate, time

3. Execution time is reduced by half or more.

Sorting a 935 row * 8 columns table:

Browser     Before      After
--------    ------      -----
Chrome 10   90ms        42ms
Safari 5    115ms       48ms
Firefox 4   412ms       87ms
IE8         720ms       115ms

4. Based on the content language and the mdy vs dmy preference, the parser can
understand dates such as "17. März '11". wgMonthNames=[] and
wgMonthNamesShort=[] 
in the content language and the mdy vs dmy preference are exported to js; A
table containing the following dates would be sorted correctly:
17. Jan. 01
23 Feb 1992
9.02.05
13 November 2001
14 Oktober '76

Was tested in ie6-8, chrome, safari 5, ff3 & ff4
2011-04-14 21:47:00 +00:00
..
ResourceLoader.php Added charset property to HTTP Content-Type fields when serving CSS and JavaScript via ResourceLoader - resolves bug #28208. 2011-04-01 20:48:50 +00:00
ResourceLoaderContext.php Fix logic error in r73204 (!) causing ResourceLoaderContext::getHash() to always return null 2011-02-19 16:48:05 +00:00
ResourceLoaderFileModule.php For bug 27488: move the startup script, jquery+mediawiki and the mw.config.set() call for configuration variables back to the <head> . Let modules control whether they're loaded in the <head> ('top') or at the bottom of the <body> ('bottom') through the position parameter/property 2011-04-07 12:07:25 +00:00
ResourceLoaderModule.php For bug 27488: move the startup script, jquery+mediawiki and the mw.config.set() call for configuration variables back to the <head> . Let modules control whether they're loaded in the <head> ('top') or at the bottom of the <body> ('bottom') through the position parameter/property 2011-04-07 12:07:25 +00:00
ResourceLoaderNoscriptModule.php Include MediaWiki:Noscript.css in <noscript></noscript> tags in the header, to allow wikis to load styles for users with JS disabled. 2011-03-05 16:01:25 +00:00
ResourceLoaderSiteModule.php 2 subclasses of ResourceLoaderWikiModule implement a duplicate version of getFlip. Move it up into ResourceLoaderWikiModule 2011-02-18 00:33:45 +00:00
ResourceLoaderStartUpModule.php Completely rewritten table sorting script. 2011-04-14 21:47:00 +00:00
ResourceLoaderUserGroupsModule.php 2 subclasses of ResourceLoaderWikiModule implement a duplicate version of getFlip. Move it up into ResourceLoaderWikiModule 2011-02-18 00:33:45 +00:00
ResourceLoaderUserModule.php 2 subclasses of ResourceLoaderWikiModule implement a duplicate version of getFlip. Move it up into ResourceLoaderWikiModule 2011-02-18 00:33:45 +00:00
ResourceLoaderUserOptionsModule.php Remove getFlip code duplication 2011-03-25 11:15:40 +00:00
ResourceLoaderWikiModule.php Remove getFlip code duplication 2011-03-25 11:15:40 +00:00