Monotone-Parent: 25301be77706f7c3801e36031343c4b9a772df83

Monotone-Revision: f38c815e39c0a20ce1e0bc26bf4422feb3f85888

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-28T13:18:31
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-28 13:18:31 +00:00
parent f69376cc82
commit 7a2ebb1315
6 changed files with 127 additions and 83 deletions
+2 -3
View File
@@ -209,14 +209,13 @@ HTMLElement.prototype.onContextMenu = function(event) {
popup.style.left = menuLeft + "px;";
popup.style.visibility = "visible;";
bodyOnClick = "" + document.body.getAttribute("onclick");
document.body.setAttribute("onclick", "onBodyClick(event);");
document.currentPopupMenu = popup;
Event.observe(document.body, "click", onBodyClickMenuHandler);
}
HTMLElement.prototype.attachMenu = function(menuName) {
this.sogoContextMenu = $(menuName);
Event.observe(this, "contextmenu", this.onContextMenu);
Event.observe(this, "contextmenu", this.onContextMenu.bindAsEventListener(this));
}
HTMLElement.prototype.select = function() {