Code

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 1afd64c1fcc54a6c80acdd22a2925da8be450ad2..de79a990fff65fb017dc10d83b48e800315a9a37 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)