mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-14 12:54:54 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user