b89bcb1a93
Monotone-Revision: 5122dba2cf6d25cecc6935ab5313e950bc38b7a8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-07-19T16:41:42 Monotone-Branch: ca.inverse.sogo
14 lines
517 B
JavaScript
14 lines
517 B
JavaScript
/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
Object.extend(TableKit, {
|
|
getHeaderCells : function(table, cell) {
|
|
if(!table) { table = $(cell).up('table'); }
|
|
var id = table.id;
|
|
if(!TableKit.tables[id].dom.head) {
|
|
// If there are tHead parts, use the first part, not the last one.
|
|
TableKit.tables[id].dom.head = $A((table.tHead && table.tHead.rows.length > 0) ? table.tHead.rows[0].cells : table.rows[0].cells);
|
|
}
|
|
return TableKit.tables[id].dom.head;
|
|
}
|
|
});
|