Author: pyaschenko
Date: 2009-03-23 11:26:18 -0400 (Mon, 23 Mar 2009)
New Revision: 13109
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
https://jira.jboss.org/jira/browse/RF-5226
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 2009-03-23
15:20:38 UTC (rev 13108)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2009-03-23
15:26:18 UTC (rev 13109)
@@ -1509,13 +1509,14 @@
var menuItem = RichFaces.Menu.findMenuItem(element.id);
var classes = 'dr-menu-item dr-menu-item-enabled rich-menu-item
rich-menu-item-enabled';
if (menuItem) {
- classes =+ ' '+menuItem.options.styleClass;
+ if (menuItem.options.styleClass) classes =+ ' '+menuItem.options.styleClass;
+ element.className = classes;
if (menuItem.options.onselect) menuItem.options.onselect(event);
} else if (attr){
if (attr.styleClass) classes += ' '+attr.styleClass;
+ element.className = classes;
if (attr.onselect) attr.onselect(event);
}
- element.className = classes;
}
RichFaces.Menu.submitForm = function (event, element, params, target, attr) {