mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 17:57:38 +00:00
Fix for bug #2896
Monotone-Parent: a0736ebfe97dd1ff5f02d3f1a6f20c4e5c593b0c Monotone-Revision: c4c5e180ad8506d04424626e6382fcd5b2b6a073 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-09-05T02:12:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user