mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-14 19:31:55 +00:00
Fix bug 31604.
Table should now load the tablesorter if needed, and make sure that the table is sortable.
This commit is contained in:
parent
4086233665
commit
11aabbd4a9
Notes:
Derk-Jan Hartman
2011-10-22 17:21:03 +00:00
|
@ -779,8 +779,11 @@ getDefaultConfig: function () {
|
|||
.addClass( 'sortable' )
|
||||
.insertAfter( $( '#wikieditor-toolbar-table-preview' ) )
|
||||
.hide();
|
||||
if ( typeof jQuery.fn.tablesorter == 'function' )
|
||||
|
||||
mw.loader.using( 'jquery.tablesorter', function() {
|
||||
$( '#wikieditor-toolbar-table-preview2' ).tablesorter();
|
||||
});
|
||||
|
||||
$( '#wikieditor-toolbar-table-sortable' ).click( function() {
|
||||
// Swap the currently shown one clone with the other one
|
||||
$( '#wikieditor-toolbar-table-preview' )
|
||||
|
|
Loading…
Reference in a new issue