JavaScript rows selection improvements

Monotone-Parent: fe48391f8342ece1fa8c34044cf6b2fa38e02918
Monotone-Revision: 8c77afb1abc1cfa1e4e6fdd86195aca95b508f1a

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-02-27T19:42:44
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-02-27 19:42:44 +00:00
parent 088dc10485
commit b63d4f2622
2 changed files with 39 additions and 27 deletions
+5 -3
View File
@@ -256,8 +256,8 @@ function openMailTo(senderMailTo) {
if (mailto.length > 0)
openMailComposeWindow(ApplicationBaseURL
+ "../Mail/compose?mailto=" + mailto
+ ((subject.length > 0)?"?subject="+subject:""));
+ "../Mail/compose?mailto=" + encodeURI(mailto)
+ ((subject.length > 0)?"?subject=" + encodeURI(subject):""));
return false; /* stop following the link */
}
@@ -592,6 +592,7 @@ function onRowClick(event) {
$(node.parentNode).selectRange(lastClickedRow, rowIndex);
} else if (isNodeSelected(node)) {
$(node).deselect();
rowIndex = null;
} else {
$(node).selectElement();
}
@@ -609,7 +610,8 @@ function onRowClick(event) {
parentNode.fire("mousedown");
}
}
lastClickedRow = rowIndex;
if (rowIndex)
lastClickedRow = rowIndex;
return true;
}