[Docs] Handle + in search queries.

This commit is contained in:
Chris Eppstein 2010-05-08 15:40:07 -07:00
parent 9feb387321
commit d79660bd96

View File

@ -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);