[Docs] Handle + in search queries.
This commit is contained in:
parent
9feb387321
commit
d79660bd96
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user