MediaWiki:Common.js: Difference between revisions

From WeSISpedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
$(document).ready(function() {
$(document).ready(function() {


mw.loader.using( 'ext.datatables', function() {
  mw.loader.using( 'ext.datatables', function() {
  // Add the default datatables markup
      // Add the default datatables markup
     $( '#ccode' ).dataTable();
     $('#ccode').DataTable( {
        "order": [[ 3, "desc" ]]
    } );
  });
  });
      
      


} );
} );

Revision as of 15:14, 12 December 2018

/* Any JavaScript here will be loaded for all users on every page load. */

$(document).ready(function() {

   mw.loader.using( 'ext.datatables', function() {
      // Add the default datatables markup
    $('#ccode').DataTable( {
        "order": [[ 3, "desc" ]]
    } );
 });
    

} );