You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by vv...@apache.org on 2010/03/22 15:42:02 UTC

svn commit: r926107 - /felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js

Author: vvalchev
Date: Mon Mar 22 14:42:02 2010
New Revision: 926107

URL: http://svn.apache.org/viewvc?rev=926107&view=rev
Log:
fixed a problem with children not added to the tree

Modified:
    felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js

Modified: felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js?rev=926107&r1=926106&r2=926107&view=diff
==============================================================================
--- felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js (original)
+++ felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js Mon Mar 22 14:42:02 2010
@@ -95,6 +95,7 @@ function addDevice(device) {
 
 	var node = treeNode(udn, name, icon, 'lightbulb').click(function() {
 		renderDevice(device);
+		return false;
 	});
 
 	var ul, hasChildren;
@@ -113,7 +114,7 @@ function addDevice(device) {
 	ul = $(createElement('ul'));
 	for(var i in device.children) {
 		hasChildren = true;
-		addDevice(device.children[i]);
+		ul.append( addDevice(device.children[i]) );
 	}
 	if (hasChildren) node.append(ul);