Difference between revisions of "MediaWiki:Common.js"

From CJ-JT Wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
$(document).ready( function () {
 
$(document).ready( function () {
     opt = document.createElement('option');
+
     var opt = document.createElement('option');
 
     opt.value = 1500;
 
     opt.value = 1500;
 
     opt.innerHTML = 'all';
 
     opt.innerHTML = 'all';
  
     select = document.getElementsByName('DataTables_Table_0_length')[0];
+
     var select = document.getElementsByName('DataTables_Table_0_length')[0];
 
     select.appendChild(opt);
 
     select.appendChild(opt);
 
} );
 
} );

Revision as of 15:01, 24 April 2023

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

$(document).ready( function () {
    var opt = document.createElement('option');
    opt.value = 1500;
    opt.innerHTML = 'all';

    var select = document.getElementsByName('DataTables_Table_0_length')[0];
    select.appendChild(opt);
} );