Jump to content

MediaWiki:Common.js: Difference between revisions

still trying to get sorter to run after page totally loads
(let's not be so cautious; somehow headerSort is not always getting applied before this function runs)
(still trying to get sorter to run after page totally loads)
Line 544: Line 544:
                         if ($(theTable).hasClass(colOption))
                         if ($(theTable).hasClass(colOption))
                         {
                         {
                             alert("Table " + j + " wants to sort by column " + col);
                             //alert("Table " + j + " wants to sort by column " + col);


                             // Now look for sort button and click it
                             // Now look for sort button and click it
Line 567: Line 567:
}
}


$(sortSortableTables);
window.addEventListener("load", sortSortableTables);