Lines Matching refs:table
34 forEach(document.getElementsByTagName('table'), function(table) { argument
35 if (table.className.search(/\bsortable\b/) != -1) {
36 sorttable.makeSortable(table);
42 makeSortable: function(table) { argument
43 if (table.getElementsByTagName('thead').length == 0) {
47 the.appendChild(table.rows[0]);
48 table.insertBefore(the,table.firstChild);
51 if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0];
53 if (table.tHead.rows.length != 1) return; // can't cope with two header rows
60 for (var i=0; i<table.rows.length; i++) {
61 if (table.rows[i].className.search(/\bsortbottom\b/) != -1) {
62 sortbottomrows[sortbottomrows.length] = table.rows[i];
66 if (table.tFoot == null) {
69 table.appendChild(tfo);
78 headrow = table.tHead.rows[0].cells;
87 headrow[i].sorttable_sortfunction = sorttable.guessType(table,i);
91 headrow[i].sorttable_tbody = table.tBodies[0];
166 guessType: function(table, column) { argument
169 for (var i=0; i<table.tBodies[0].rows.length; i++) {
170 text = sorttable.getInnerText(table.tBodies[0].rows[i].cells[column]);