Author: vmolotkov
Date: 2008-07-17 13:03:29 -0400 (Thu, 17 Jul 2008)
New Revision: 9667
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
bugs RF-2102, RF-2119, RF-3639
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
---
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-07-17
16:18:02 UTC (rev 9666)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-07-17
17:03:29 UTC (rev 9667)
@@ -442,6 +442,10 @@
e = window.event;
}
+ //bugs RF-2102, RF-2119, RF-3639
+ if (Event.element(e).tagName.toLowerCase() == "a") {
+ return;
+ }
this.event = e;
this.element = $(elementId) || Event.element(e);
this.layer = $(layer);
@@ -1086,15 +1090,15 @@
binding.refresh();
}.bind(this);
- if (onEvt == 'mouseover') {
+ //if (onEvt == 'mouseover') {
addBinding(topLevel, onEvt, function(e) {
menuOn.call(this, e);
mouseover.call(this, e);
}.bindAsEventListener(this));
- } else {
- addBinding(bindElementId, onEvt, menuOn.bindAsEventListener(this));
- addBinding(topLevel, 'mouseover', mouseover.bindAsEventListener(this));
- }
+ //} else {
+ // addBinding(bindElementId, onEvt, menuOn.bindAsEventListener(this));
+ // addBinding(topLevel, 'mouseover', mouseover.bindAsEventListener(this));
+ //}
if (offEvt == 'mouseout') {
addBinding(topLevel, offEvt, function(e) {
Show replies by date