Monotone-Parent: 3d8272cfb7a360effb353f8ed683e96af4d60e6e

Monotone-Revision: 2062a8955d0e8ef69c5b26a75a2f3aeaacd8142e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-02-05T15:06:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-02-05 15:06:49 +00:00
parent fddeb02e3b
commit b1a616b2cb
2 changed files with 178 additions and 171 deletions
+6 -5
View File
@@ -278,9 +278,10 @@ function onTextContextMenu(event) {
}
function onTextMouseDown(event) {
log("coucou 1");
event.returnValue = false;
event.cancelBubble = false;
if (event.button == 0) {
event.returnValue = false;
event.cancelBubble = false;
}
}
function initMailEditor() {
@@ -307,8 +308,8 @@ function initMailEditor() {
textarea.scrollTop = textarea.scrollHeight;
textarea.observe("focus", onTextFirstFocus);
textarea.observe("focus", onTextFocus);
textarea.observe("contextmenu", onTextContextMenu);
textarea.observe("mousedown", onTextMouseDown);
// textarea.observe("contextmenu", onTextContextMenu);
textarea.observe("mousedown", onTextMouseDown, true);
onWindowResize(null);
Event.observe(window, "resize", onWindowResize);