mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-20 15:44:53 +00:00
Monotone-Parent: 8a165a32a6a836849e62e7fa408d15b5ce3c7a25
Monotone-Revision: 0a3d8971fb4a3b2c5dfbe3f501204e4f46f3ce96 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-10-25T19:22:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -623,7 +623,8 @@ function onBodyClickMenuHandler(event) {
|
||||
hideMenu(document.currentPopupMenu);
|
||||
Event.stopObserving(document.body, "click", onBodyClickMenuHandler);
|
||||
|
||||
preventDefault(event);
|
||||
if (event)
|
||||
preventDefault(event);
|
||||
}
|
||||
|
||||
function hideMenu(menuNode) {
|
||||
@@ -1167,9 +1168,12 @@ function initMenu(menuDIV, callbacks) {
|
||||
popupSubmenu.bindAsEventListener(node));
|
||||
}
|
||||
}
|
||||
else
|
||||
else {
|
||||
Event.observe(node, "mouseup",
|
||||
onBodyClickMenuHandler);
|
||||
Event.observe(node, "click",
|
||||
$(callback).bindAsEventListener(node));
|
||||
}
|
||||
}
|
||||
else
|
||||
node.addClassName("disabled");
|
||||
|
||||
Reference in New Issue
Block a user