Don't display the menu when the anchor is disabled

This commit is contained in:
Tom Hughes 2010-11-17 15:52:08 +00:00
parent 918dd5679f
commit 46af060a37

View file

@ -14,6 +14,7 @@ function openMenu(anchor, menu) {
* Callback called when the mouse enters a menu anchor. * Callback called when the mouse enters a menu anchor.
*/ */
function enterMenuAnchor(event, anchor, menu, delay) { function enterMenuAnchor(event, anchor, menu, delay) {
if (!anchor.hasClassName("disabled")) {
clearTimeout(menu.timer); clearTimeout(menu.timer);
if (delay > 0) { if (delay > 0) {
@ -21,6 +22,7 @@ function enterMenuAnchor(event, anchor, menu, delay) {
} else { } else {
openMenu(event, menu); openMenu(event, menu);
} }
}
} }
/* /*