Author: sergeyhalipov
Date: 2007-10-26 13:04:56 -0400 (Fri, 26 Oct 2007)
New Revision: 3573
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
http://jira.jboss.com/jira/browse/RF-993
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
---
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-10-26
16:16:55 UTC (rev 3572)
+++
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-10-26
17:04:56 UTC (rev 3573)
@@ -48,11 +48,20 @@
},
observeEvents: function(element) {
+ var cells = element.rows[0].cells;
var eIcon = null;
var eText = null;
if ("NETSCAPE" == RichFaces.navigatorType()) {
- eIcon = $(this.elementID.icon);
- eText = $(this.elementID.text);
+ for (var i = 0; i < cells.length; i++) {
+ if (cells[i].id == this.elementID.icon) {
+ eIcon = cells[i];
+ } else if (cells[i].id == this.elementID.text) {
+ eText = cells[i];
+ }
+ if (eIcon && eText) {
+ break;
+ }
+ }
} else {
var cells = element.rows[0].cells;
//seeking by id seems to be miserably slow in IE than by index