MediaWiki:Common.js: Difference between revisions

From CJ-JT Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
     opt.value = 1500;
     opt.value = 1500;
     opt.innerHTML = 'all';
     opt.innerHTML = 'all';
     document.getElementsByName('DataTables_Table_0_length').appendChild(opt);
 
     select = document.getElementByName('DataTables_Table_0_length');
    select.appendChild(opt);
} );
} );

Revision as of 14:56, 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';

    select = document.getElementByName('DataTables_Table_0_length');
    select.appendChild(opt);
} );