Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js |
— | — | @@ -779,8 +779,11 @@ |
780 | 780 | .addClass( 'sortable' ) |
781 | 781 | .insertAfter( $( '#wikieditor-toolbar-table-preview' ) ) |
782 | 782 | .hide(); |
783 | | - if ( typeof jQuery.fn.tablesorter == 'function' ) |
784 | | - $( '#wikieditor-toolbar-table-preview2' ).tablesorter(); |
| 783 | + |
| 784 | + mw.loader.using( 'jquery.tablesorter', function() { |
| 785 | + $( '#wikieditor-toolbar-table-preview2' ).tablesorter(); |
| 786 | + }); |
| 787 | + |
785 | 788 | $( '#wikieditor-toolbar-table-sortable' ).click( function() { |
786 | 789 | // Swap the currently shown one clone with the other one |
787 | 790 | $( '#wikieditor-toolbar-table-preview' ) |