mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-12 18:31:23 +00:00
Monotone-Parent: 2efa5eae838cb1f105fa6d374d23689838913b4d
Monotone-Revision: d07959b964a2582bf5674d383b0dac7303346571 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-01-31T16:07:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -271,6 +271,18 @@ function onTextFirstFocus() {
|
||||
Event.stopObserving(this, "focus", onTextFirstFocus);
|
||||
}
|
||||
|
||||
function onTextContextMenu(event) {
|
||||
log("coucou");
|
||||
event.returnValue = true;
|
||||
event.cancelBubble = true;
|
||||
}
|
||||
|
||||
function onTextMouseDown(event) {
|
||||
log("coucou 1");
|
||||
event.returnValue = false;
|
||||
event.cancelBubble = false;
|
||||
}
|
||||
|
||||
function initMailEditor() {
|
||||
var list = $("attachments");
|
||||
$(list).attachMenu("attachmentsMenu");
|
||||
@@ -295,6 +307,8 @@ function initMailEditor() {
|
||||
textarea.scrollTop = textarea.scrollHeight;
|
||||
textarea.observe("focus", onTextFirstFocus);
|
||||
textarea.observe("focus", onTextFocus);
|
||||
textarea.observe("contextmenu", onTextContextMenu);
|
||||
textarea.observe("mousedown", onTextMouseDown);
|
||||
|
||||
onWindowResize(null);
|
||||
Event.observe(window, "resize", onWindowResize);
|
||||
|
||||
Reference in New Issue
Block a user