Difference between revisions of "MediaWiki:Common.js"

From CJ-JT Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
  
opt = document.createElement('option');
+
$(document).ready( function () {
opt.value = 1500;
+
    opt = document.createElement('option');
opt.innerHTML = 'all';
+
    opt.value = 1500;
document.getElementByName('DataTables_Table_0_length').appendChild(opt);
+
    opt.innerHTML = 'all';
 +
    document.getElementByName('DataTables_Table_0_length').appendChild(opt);
 +
} );

Revision as of 14:55, 24 April 2023

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

$(document).ready( function () {
    opt = document.createElement('option');
    opt.value = 1500;
    opt.innerHTML = 'all';
    document.getElementByName('DataTables_Table_0_length').appendChild(opt);
} );