From: Arun Persaud Date: Sun, 27 Nov 2011 06:29:40 +0000 (-0800) Subject: fix displaying of tags that include a whitespace (use + instead) X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=photo-tags.git;a=commitdiff_plain;h=26ae9884808f0613d35268818a3b0cd7ed247872 fix displaying of tags that include a whitespace (use + instead) --- diff --git a/index.php b/index.php index e5131db..4a7bdf4 100644 --- a/index.php +++ b/index.php @@ -70,7 +70,7 @@ d3.json("/getjson.php?S", function(json) { /* update form to point to new link */ d3.select("input").on("keyup", function(d) { - d3.select('form').attr("action","/tag/"+document.getElementById('MyTagsInput').value); + d3.select('form').attr("action","/tag/"+document.getElementById('MyTagsInput').value.replace(" ","+")); }); function myreload(a) {