Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation
Jump to search
|
|
(20 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| original_onload = window.onload;
| |
|
| |
|
| window.onload = function() {
| |
| original_onload();
| |
| if (cell.innerHTML.indexOf("sortheader") < 0) {
| |
| sortables_init();
| |
| // sort the first sortable table; change [0] to sort other tables.
| |
| tab = document.getElementsByTagName("table")[0];
| |
| // sort by the first column; change [0] to sort by other columns.
| |
| hdr = tab.getElementsByTagName("th")[0];
| |
| // get the sort button link
| |
| lnk = hdr.getElementsByTagName("a")[0];
| |
| ts_resortTable(lnk);
| |
| }
| |
| }
| |
Latest revision as of 12:40, 31 July 2017