[Docs] Handle + in search queries.
This commit is contained in:
parent
9feb387321
commit
d79660bd96
@ -9,8 +9,9 @@ body_id: search
|
|||||||
:javascript
|
:javascript
|
||||||
$(function(){
|
$(function(){
|
||||||
if ($.url.param("q")) {
|
if ($.url.param("q")) {
|
||||||
$('input#q').attr('value', $.url.param("q"));
|
var query = $.url.param("q").replace("+"," ");
|
||||||
search($.url.param("q"), displayResults);
|
$('input#q').attr('value', query);
|
||||||
|
search(query, displayResults);
|
||||||
}
|
}
|
||||||
$('input#q').keyup(function(){
|
$('input#q').keyup(function(){
|
||||||
search(this.value, displayResults);
|
search(this.value, displayResults);
|
||||||
|
Loading…
Reference in New Issue
Block a user