Monotone-Parent: b31e6efb5efed6bcfa2c6aaca6dbbb4e06a9a637

Monotone-Revision: ae19f5b80b87d9f63b4068d2a027a9fdb3190efb

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-10-09T19:27:37
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-10-09 19:27:37 +00:00
parent 0408389bb9
commit dbfd64e61f
5 changed files with 125 additions and 50 deletions
+4 -2
View File
@@ -545,8 +545,10 @@ function onRowClick(event) {
if (node.tagName == 'TD') {
node = node.parentNode; // select TR
rowIndex = node.rowIndex - $(node).up('table').down('thead').getElementsByTagName('tr').length;
}
if (node.tagName == 'TR') {
rowIndex = node.rowIndex - $(node).up('table').down('thead').getElementsByTagName('tr').length;
}
else if (node.tagName == 'LI') {
// Find index of clicked row
var list = node.parentNode;
@@ -593,7 +595,7 @@ function onRowClick(event) {
// Single line selection
$(node.parentNode).deselectAll();
$(node).selectElement();
if (initialSelection != $(node.parentNode).getSelectedNodes()) {
// Selection has changed; fire mousedown event
var parentNode = node.parentNode;