share/collection.js: Add links to dynamically created instances.
authorFlorian Forster <ff@octo.it>
Sun, 20 Jun 2010 18:44:37 +0000 (20:44 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 20 Jun 2010 18:44:37 +0000 (20:44 +0200)
share/collection.js

index 1afd64c..de79a99 100644 (file)
@@ -1,6 +1,6 @@
 function format_instance(inst)
 {
-  return ("<li class=\"instance\">" + inst.description + "</li>");
+  return ("<li class=\"instance\"><a href=\"" + location.pathname + "?action=graph;" + inst.params + "\">" + inst.description + "</a></li>");
 }
 
 function format_instance_list(instances)