From d79660bd96dba29c0cac692b0a32bf7b879070f2 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 8 May 2010 15:40:07 -0700 Subject: [PATCH] [Docs] Handle + in search queries. --- doc-src/content/search.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc-src/content/search.haml b/doc-src/content/search.haml index fb7910a3..a95cc410 100644 --- a/doc-src/content/search.haml +++ b/doc-src/content/search.haml @@ -9,8 +9,9 @@ body_id: search :javascript $(function(){ if ($.url.param("q")) { - $('input#q').attr('value', $.url.param("q")); - search($.url.param("q"), displayResults); + var query = $.url.param("q").replace("+"," "); + $('input#q').attr('value', query); + search(query, displayResults); } $('input#q').keyup(function(){ search(this.value, displayResults);