Author: nbelaevski
Date: 2007-07-04 12:18:03 -0400 (Wed, 04 Jul 2007)
New Revision: 1467
Modified:
branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js
Log:
http://jira.jboss.com/jira/browse/RF-417 fixed
Modified:
branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js
===================================================================
---
branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js 2007-07-04
15:24:27 UTC (rev 1466)
+++
branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js 2007-07-04
16:18:03 UTC (rev 1467)
@@ -165,12 +165,17 @@
if (next != item) {
return next;
} else {
- var next = item.parent.next();
- if (next != item.parent) {
- return next;
- } else {
- return item;
+ var parentItem = item.parent;
+ while (parentItem && parentItem != this.tree) {
+ var next = parentItem.next();
+ if (next != parentItem) {
+ return next;
+ } else {
+ parentItem = parentItem.parent;
+ }
}
+
+ return item;
}
}
},