Author: amarkhel
Date: 2010-12-03 09:11:09 -0500 (Fri, 03 Dec 2010)
New Revision: 20349
Modified:
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/menu.js
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js
Log:
drop-down menu client-code update
https://jira.jboss.org/browse/RF-9785
Modified:
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/menu.js
===================================================================
---
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/menu.js 2010-12-03
14:06:54 UTC (rev 20348)
+++
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/menu.js 2010-12-03
14:11:09 UTC (rev 20349)
@@ -80,7 +80,7 @@
},
processItem: function(item) {
- if (item && item.atrr('id') &&
!this.isDisabled(item) && this.isGroup(item)) {
+ if (item && item.attr('id') &&
!this.__isDisabled(item) && this.__isGroup(item)) {
this.invokeEvent("itemclick", rf.getDomElement(this.id),
null);
this.hidePopup();
}
@@ -126,7 +126,7 @@
},
__isGroup: function(item) {
- return 'object' == typeof this.groupList[item.atrr('id')];
+ return 'object' == typeof this.groupList[item.attr('id')];
},
__isDisabled: function(item) {
Modified:
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js
===================================================================
---
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js 2010-12-03
14:06:54 UTC (rev 20348)
+++
sandbox/trunk/ui/dropdown-menu/ui/src/main/resources/META-INF/resources/org.richfaces/popupList.js 2010-12-03
14:11:09 UTC (rev 20349)
@@ -176,11 +176,10 @@
}
},
- __onClick: function(e) {
- console.info("e.target: "+$(e.target).attr('id')+";
e.currentTarget:"+$(e.currentTarget).attr('id'));
+ __onClick: function(e) {
var item = this.__getItem(e);
- //this.processItem($(item));
- //this.__select(item);
+ this.processItem($(item));
+ this.__select(item);
},
__getItem: function(e) {