mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-24 11:24:17 +00:00
Monotone-Parent: eb80137abbc0c0a426a654921250804b1c3d92ab
Monotone-Revision: 9afbcfbc31ab96049b1a603edff5f9ed02a4a00d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-02-07T23:09:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -652,6 +652,11 @@ function onBodyClickMenuHandler(event) {
|
||||
preventDefault(event);
|
||||
}
|
||||
|
||||
function onMenuClickHandler(event) {
|
||||
if (!this.hasClassName("disabled"))
|
||||
this.menuCallback.apply(this, [event]);
|
||||
}
|
||||
|
||||
function hideMenu(menuNode) {
|
||||
var onHide;
|
||||
|
||||
@@ -1198,7 +1203,8 @@ function initMenu(menuDIV, callbacks) {
|
||||
}
|
||||
else {
|
||||
node.observe("mouseup", onBodyClickMenuHandler);
|
||||
node.observe("click", callback);
|
||||
node.menuCallback = callback;
|
||||
node.observe("click", onMenuClickHandler);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user