[richfaces-svn-commits] JBoss Rich Faces SVN: r971 - trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Jun 1 07:44:36 EDT 2007


Author: sergeyhalipov
Date: 2007-06-01 07:44:36 -0400 (Fri, 01 Jun 2007)
New Revision: 971

Modified:
   trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
http://jira.jboss.com/jira/browse/RF-224

Modified: trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
--- trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js	2007-06-01 10:44:50 UTC (rev 970)
+++ trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js	2007-06-01 11:44:36 UTC (rev 971)
@@ -8,8 +8,8 @@
 		this.tree = $(tree);
 		this.elements = {};
 		($(id)).object = this;
+		this.toggleOnClick = toggleOnClick;
 		this.getElements();
-		this.toggleOnClick = toggleOnClick;
 
 		this.eventSelectionClick = this.toggleSelection.bindAsEventListener(this);
 		this.eventMouseOut = this.processMouseOut.bindAsEventListener(this);
@@ -73,7 +73,7 @@
 			for (var i = 0; i < childsTd.childNodes.length; i++) {
 				var child = childsTd.childNodes[i];
 				if (child.nodeType == 1 && child.tagName.toLowerCase() == "table") {
-					this.addChild(new Tree.Item(child.id, this.tree, this, this.childs.length, this.switchType));
+					this.addChild(new Tree.Item(child.id, this.tree, this, this.childs.length, this.switchType, this.toggleOnClick));
 				}
 			}
 		}




More information about the richfaces-svn-commits mailing list