https://bugzilla.wikimedia.org/show_bug.cgi?id=27389

           Summary: Update sortable table script to latest version
           Product: MediaWiki
           Version: 1.18-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Javascript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


The sortable table we have in wikibits.js is an old version of the script.
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?view=markup#l517

We should:
* Check if we made any adjustments to it
** if so, do we still need them or are they fixed upstream in the mean time ?
* Check out the latest version to see if it broke anything (ie. if it still
supports class="unsortable", and <th> as head in a <tr> and not require
<thead>)
* Rewrite that new version [1] in an object so we can easily put it somewhere
in /resources/ without conflicting with names of the legacy version in
wikibits.js or otherwise polluting the global/window namespace.
* Do some testing to verify that existing tables work fine
* Remove the old script and the sortables_init-call from wikibits.js
* Load the new script by default and call the Init() of it


[1] http://yoast.com/articles/sortable-table/
Tags: window.ts tablesort sortable table wikitable

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to