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 aa799b98d868fb0f220e9484205499e709aa40d5..34382f9bd334991c20287262542a71f28aa65978 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) {
 
 /* 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});
   });
 
       .enter().append("option").attr("value",function(d) {return d.name});
   });