「利用者:Yasusushi/common.js」の版間の差分

編集の要約なし
(さらにテスト)
編集の要約なし
6行目: 6行目:
     // wrapped in "mw.loader.using" so this doesn't execute until Tablesorter has loaded
     // wrapped in "mw.loader.using" so this doesn't execute until Tablesorter has loaded
     mw.loader.using( 'jquery.tablesorter', function() {
     mw.loader.using( 'jquery.tablesorter', function() {
         if( isSortedTablePage() ) $('table.sortable').tablesorter( {sortList: [ { 2: 'desc' }, { 3: 'asc' } ]} );
         if( isSortedTablePage() ) $('table.sortable').tablesorter( {sortList: [ { 3: 'asc' } ]} );
         // or look for tables with an ID attribute of "sortMe" on any page
         // or look for tables with an ID attribute of "sortMe" on any page
         // $( '#sortMe' ).tablesorter( {sortList: [ { 0: 'asc'} ]} )
         // $( '#sortMe' ).tablesorter( {sortList: [ { 0: 'asc'} ]} )
     } );
     } );
} );
} );
6,514

回編集