fix displaying of tags that include a whitespace (use + instead)
authorArun Persaud <arun@nubati.net>
Sun, 27 Nov 2011 06:29:40 +0000 (22:29 -0800)
committerArun Persaud <apersaud@lbl.gov>
Sun, 27 Nov 2011 06:29:40 +0000 (22:29 -0800)
index.php

index e5131db..4a7bdf4 100644 (file)
--- a/index.php
+++ b/index.php
@@ -70,7 +70,7 @@ d3.json("<?php echo $webbase?>/getjson.php?S", function(json) {
 
 /* update form to point to new link */
 d3.select("input").on("keyup", function(d) {
-    d3.select('form').attr("action","<?php echo $webbase?>/tag/"+document.getElementById('MyTagsInput').value);
+    d3.select('form').attr("action","<?php echo $webbase?>/tag/"+document.getElementById('MyTagsInput').value.replace(" ","+"));
 });
 
 function myreload(a) {