mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-29 09:00:31 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user