Author: nbelaevski
Date: 2007-04-27 14:48:41 -0400 (Fri, 27 Apr 2007)
New Revision: 590
Modified:
trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
http://jira.jboss.com/jira/browse/RF-129 in progress
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-04-27
13:29:00 UTC (rev 589)
+++
trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-04-27
18:48:41 UTC (rev 590)
@@ -10,12 +10,6 @@
($(id)).object = this;
this.getElements();
- if (this.switchType=="client" && this.childs.length > 0) {
- if (this.elements.handle) {
- this.eventCollapsionClick = this.toggleCollapsion.bindAsEventListener(this);
- Event.observe(this.elements.handle, "click", this.eventCollapsionClick);
- }
- }
this.eventSelectionClick = this.toggleSelection.bindAsEventListener(this);
this.eventMouseOut = this.processMouseOut.bindAsEventListener(this);
this.eventMouseOver = this.processMouseOver.bindAsEventListener(this);
@@ -37,6 +31,14 @@
Event.observe(this.elements.text, "mouseout", this.eventMouseOut);
Event.observe(this.elements.icon, "mouseover", this.eventMouseOver);
Event.observe(this.elements.text, "mouseover", this.eventMouseOver);
+
+ if (this.switchType=="client" && this.childs.length > 0) {
+ if (this.elements.handle) {
+ this.eventCollapsionClick = this.toggleCollapsion.bindAsEventListener(this);
+ Event.observe(this.elements.handle, "click", this.eventCollapsionClick);
+ }
+ }
+
if (this.eventRightClick) {
this.elements.icon.oncontextmenu = this.eventRightClick;
this.elements.text.oncontextmenu = this.eventRightClick;