TableSorter: Avoid FOUC and preserve styling in VisualEditor
authorEd Sanders <esanders@wikimedia.org>
Mon, 25 Jan 2016 17:14:29 +0000 (17:14 +0000)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 26 Jan 2016 12:59:29 +0000 (13:59 +0100)
commit9e363d0e8a12f4fc205de08958622d6e8e250c81
tree27f6e3b3a7ef564efa41893af3c49014db0377aa
parent9080b6f763a08fe39c3dd854e8555d1748625fca
TableSorter: Avoid FOUC and preserve styling in VisualEditor

Always make space for the icon and display a placeholder
if JavaScript is loaded, even if we haven't set up table
sorting for a given table yet.

The table will not be sortable in VE mode but for layout
preview we should show some disabled sort icons.

Bug: T95189
Change-Id: Ieb21cf79ae68e388e824923cb6e2d7d552a4afc6
resources/src/jquery/jquery.tablesorter.less
resources/src/mediawiki.skinning/content.css
resources/src/mediawiki.skinning/images/sort_both_readonly.png [new file with mode: 0644]
resources/src/mediawiki.skinning/images/sort_both_readonly.svg [new file with mode: 0644]