Author: pyaschenko
Date: 2008-11-21 08:59:26 -0500 (Fri, 21 Nov 2008)
New Revision: 11289
Modified:
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js
Log:
comments added
Modified:
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js
===================================================================
---
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js 2008-11-21
13:58:26 UTC (rev 11288)
+++
trunk/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/scripts/panelMenu.js 2008-11-21
13:59:26 UTC (rev 11289)
@@ -182,6 +182,7 @@
collapse: function(){
if (!this.disabled) {
if (this.expanded){
+ // TODO: PY: don't understand why we are using _getDirectChildrenByTag. We have
this.inputs, this.inputState, this.inputAction
if (this._getDirectChildrenByTag(this.content,"INPUT")[0]!=null){
this._getDirectChildrenByTag(this.content,"INPUT")[0].value="closed";}
for (var i = 0; i < this.childObj.length; i++){
@@ -440,7 +441,6 @@
_getDirectChildrenByTag: function(e, tagName) {
var allKids = e.childNodes;
var kids = new Array();
- var ddk;
tagName = tagName.toLowerCase();
for( var i = 0 ; i < allKids.length ; i++ )
if ( allKids[i] && allKids[i].tagName &&
allKids[i].tagName.toLowerCase() == tagName )
Show replies by date