fix displaying of tags that include a whitespace (use + instead)
[photo-tags.git] / 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) {
-    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) {