MediaWiki:Common.js: Difference between revisions

From CJ-JT Wiki
Jump to navigation Jump to search
No edit summary
(sleepy commit, removing and using LocalSettings hook to insert properly)
 
(14 intermediate revisions by 2 users not shown)
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. */


$(document).ready( function() {
setTimeout( showAllEntries, 5000);
  $('label select').load( function() {
 
     var opt = new Option("all", "1500");
function showAllEntries() {
     var opt = new Option("all", "10000");
     $(opt).html("all");
     $(opt).html("all");
     var t = $('label select[name="DataTables_Table_0_length"]').append(opt);
     var t = $('label select[name="DataTables_Table_0_length"]').append(opt);
    console.log(t);
}
  } );
} );

Latest revision as of 02:28, 23 May 2025

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

setTimeout( showAllEntries, 5000);

function showAllEntries() {
    var opt = new Option("all", "10000");
    $(opt).html("all");
    var t = $('label select[name="DataTables_Table_0_length"]').append(opt);
}