felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vvalc...@apache.org
Subject svn commit: r926107 - /felix/trunk/webconsole-plugins/upnp/src/main/resources/res/upnp.js
Date Mon, 22 Mar 2010 14:42:02 GMT
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);
 



Mime
View raw message