Author: abelevich
Date: 2008-07-08 11:13:17 -0400 (Tue, 08 Jul 2008)
New Revision: 9455
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
http://jira.jboss.com/jira/browse/RF-3676
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-08
15:01:24 UTC (rev 9454)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-07-08
15:13:17 UTC (rev 9455)
@@ -1314,7 +1314,9 @@
if (menuLayer && menuLayer.eventOnItemSelect) menuLayer.eventOnItemSelect();
RichFaces.Menu.Layers.shutdown();
}
- RichFaces.Menu.Items.onmouseout(this);
+ if(!this.options.disabled) {
+ RichFaces.Menu.Items.onmouseout(this);
+ }
},
getElement: function() {
return $(this.id);
@@ -1348,7 +1350,7 @@
onmouseover : function(event) {
var element = this.getElement();
- if (this.options.onmouseover) {
+ if (this.options.onmouseover && !this.options.disabled) {
if (this.options.onmouseover.call(element, event) == false) {
Event.stop(event);
return;
@@ -1370,7 +1372,7 @@
onmouseout : function(event) {
Event.extend(event);
//window.status = $(event.relatedTarget).inspect();
- if (this.options.onmouseout) {
+ if (this.options.onmouseout && !this.options.disabled) {
if (this.options.onmouseout.call(element, event) == false) {
Event.stop(event);
return;