fix autocomplete of tags
authorArun Persaud <arun@nubati.net>
Wed, 25 Jan 2012 04:41:19 +0000 (20:41 -0800)
committerArun Persaud <apersaud@lbl.gov>
Wed, 25 Jan 2012 04:41:19 +0000 (20:41 -0800)
index.php

index aa799b9..34382f9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -78,7 +78,7 @@ var count=0;
 
 /* populate data list with tags*/
 d3.json("<?php echo $webbase?>/getjson.php?S", function(json) {
-    d3.select("#MyTags").selectAll("option").data(json[1])
+    d3.select("#MyTags").selectAll("option").data(json)
       .enter().append("option").attr("value",function(d) {return d.name});
   });