Author: pyaschenko
Date: 2008-04-29 09:49:33 -0400 (Tue, 29 Apr 2008)
New Revision: 8310
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
http://jira.jboss.com/jira/browse/RF-2323
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-04-29
13:19:35 UTC (rev 8309)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-04-29
13:49:33 UTC (rev 8310)
@@ -900,6 +900,13 @@
var within = true;
var targetElement = event.relatedTarget;
+
+ try {
+ if (targetElement && targetElement.className=="anonymous-div")
+ return false;
+ } catch (e) {
+ return false;
+ }
while (targetElement && targetElement.nodeType!=1) targetElement =
targetElement.parentNode;
@@ -1233,9 +1240,20 @@
RichFaces.Menu.isWithin = function (event, element) {
var within = false;
Event.extend(event);
+
var targetElement = event.relatedTarget;
+
+ try {
+ if (targetElement && targetElement.className=="anonymous-div")
+ return false;
+ } catch (e) {
+ return false;
+ }
- while (targetElement && targetElement.nodeType!=1) targetElement =
targetElement.parentNode;
+ while (targetElement && targetElement.nodeType!=1)
+ {
+ targetElement = targetElement.parentNode;
+ }
if (targetElement) {
within = targetElement == element ||