Author: konstantin.mishin
Date: 2008-08-07 08:38:03 -0400 (Thu, 07 Aug 2008)
New Revision: 9970
Modified:
trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
Log:
RF-4055
Modified:
trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
===================================================================
---
trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2008-08-07
12:17:44 UTC (rev 9969)
+++
trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2008-08-07
12:38:03 UTC (rev 9970)
@@ -52,7 +52,7 @@
public static final String PANEL_BAR_RESOURCES = "PANEL_BAR_RESOURCES";
public static final String EXPANDED_ATTR="expanded";
- private final InternetResource[] scripts = {new AjaxScript(),new PrototypeScript(),new
ImageCacheScript(),
getResource("/org/richfaces/renderkit/html/scripts/browser_info.js"),
getResource("scripts/panelbar.js") };
+ private final InternetResource[] scripts = {new AjaxScript(),new PrototypeScript(),new
ImageCacheScript(),
getResource("/org/richfaces/renderkit/html/scripts/browser_info.js"),
getResource("/org/richfaces/renderkit/html/scripts/utils.js"),
getResource("scripts/panelbar.js") };
protected InternetResource[] getScripts() {
return scripts;
Modified:
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
===================================================================
---
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2008-08-07
12:17:44 UTC (rev 9969)
+++
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2008-08-07
12:38:03 UTC (rev 9970)
@@ -119,7 +119,7 @@
_getItems: function( e ) {
var kids = new Array();
- var item = e.firstChild;
+ var item = Richfaces.firstDescendant(e);
var index=0;
var id = this.items[index].id;
do
@@ -232,7 +232,7 @@
showContent: function() {
this.content.style.display="block";
- this.content.firstChild.style.height="";
+ Richfaces.firstDescendant(this.content).style.height="";
this.header.style.display="none";
this.header_act.style.display="";
@@ -240,7 +240,7 @@
hideContent: function() {
this.content.style.display="none";
- this.content.firstChild.style.height="100%";
+ Richfaces.firstDescendant(this.content).style.height="100%";
},
hideHeader: function() {
Show replies by date