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 e5131db62d13d5975b99b8371dbb1b32b2e5bb6a..4a7bdf48720a6b629bb03ca0b29d027bf0112ea3 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) {
 
 /* 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) {
 });
 
 function myreload(a) {