mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-28 04:36:24 +00:00
Monotone-Parent: 3f4219a57994d48948bd4148cb90b8d4c2c820df
Monotone-Revision: 21947601e8d55a07243cb36a9943a7ddc4148e06 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-12-20T22:55:54 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -15,16 +15,14 @@ HTMLTableElement.prototype.selectRowsMatchingClass = function(className) {
|
||||
var nodes = tbody.childNodes;
|
||||
for (var i = 0; i < nodes.length; i++) {
|
||||
var node = nodes.item(i);
|
||||
if (node instanceof HTMLElement) {
|
||||
var classStr = '' + node.getAttribute("class");
|
||||
if (classStr.indexOf(className, 0) >= 0)
|
||||
selectNode(node);
|
||||
}
|
||||
if (node instanceof HTMLElement
|
||||
&& node.hasClassName(className))
|
||||
node.select();
|
||||
}
|
||||
}
|
||||
|
||||
HTMLTableElement.prototype.deselectAll = function() {
|
||||
var nodes = this.getSelectedRows();
|
||||
for (var i = 0; i < nodes.length; i++)
|
||||
deselectNode(nodes[i]);
|
||||
nodes[i].deselect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user