Author: abelevich
Date: 2008-03-10 15:23:28 -0400 (Mon, 10 Mar 2008)
New Revision: 6666
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
Log:
add check item != null check on the getEventItem method
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
===================================================================
---
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-03-10
19:21:29 UTC (rev 6665)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2008-03-10
19:23:28 UTC (rev 6666)
@@ -46,9 +46,11 @@
getEventItem : function(event) {
var item = Event.findElement(event, "span");
- if (this.listParent.parentNode.id == item.id) {
- return;
- }
+ if (item) {
+ if (this.listParent.parentNode.id == item.id) {
+ return;
+ }
+ }
return item;
},
Show replies by date