You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2010/02/19 19:03:10 UTC

svn commit: r911883 - /incubator/vcl/trunk/web/js/privileges.js

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;
 }



Re: svn commit: r911883 - /incubator/vcl/trunk/web/js/privileges.js

Posted by Mari <ma...@hotmail.com>.


Enviado.


El 19/02/2010, a las 14:03, jfthomps@apache.org escribió:

> 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;
> }
>
>
>