Author: nbelaevski
Date: 2008-04-22 19:42:59 -0400 (Tue, 22 Apr 2008)
New Revision: 8084
Modified:
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js
Log:
http://jira.jboss.com/jira/browse/RF-3140
Modified:
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js
===================================================================
---
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js 2008-04-22
22:39:25 UTC (rev 8083)
+++
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js 2008-04-22
23:42:59 UTC (rev 8084)
@@ -113,12 +113,14 @@
if(!parentForm || !parentForm.appendChild /* findForm returns surrogate form object */)
return;
var thePanel = this.panels.get(clientId);
+ var element = $(clientId);
+
if (thePanel.status == "true") {
- if (thePanel.invokeEvent("collapse",event,"true",fInput)) {
+ if (thePanel.invokeEvent("collapse",event,"true",element)) {
thePanel.status="false";
}
} else {
- if (thePanel.invokeEvent("expand",event,"false",fInput)) {
+ if (thePanel.invokeEvent("expand",event,"false",element)) {
thePanel.status="true";
}
}