Author: jfthomps Date: Fri Feb 19 18:03:10 2010 New Revision: 911883 URL: http://svn.apache.org/viewvc?rev=911883&view=rev Log: VCL-98
fixed bug in isChildFocused that sometimes caused the wrong value to be returned, causing the tree to be able to collapse without changing the focus to the now collapsed node Modified: incubator/vcl/trunk/web/js/privileges.js Modified: incubator/vcl/trunk/web/js/privileges.js URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/privileges.js?rev=911883&r1=911882&r2=911883&view=diff ============================================================================== --- incubator/vcl/trunk/web/js/privileges.js (original) +++ incubator/vcl/trunk/web/js/privileges.js Fri Feb 19 18:03:10 2010 @@ -86,7 +86,8 @@ if(nodes[i].name == focusid) return 1; else if(nodes[i].children) - return isChildFocused(focusid, nodes[i].children); + if(isChildFocused(focusid, nodes[i].children)) + return 1; } return 0; }