Skip to content

Commit

Permalink
Fixed the search autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Nov 21, 2014
1 parent e5fc6f6 commit d4cbcc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ var $document = wb.doc,
//Search Autocomplete
queryAutoComplete = function( query ) {
if ( query.length > 0 ) {
$document.trigger({
$( this ).trigger({
type: "ajax-fetch.wb",
element: this,
fetch: {
url: "http://clients1.google.com/complete/search?client=partner&sugexp=gsnos%2Cn%3D13&gs_rn=25&gs_ri=partner&partnerid=" + window.encodeURIComponent("008724028898028201144:knjjdikrhq0+lang:" + wb.lang) + "&types=t&ds=cse&cp=3&gs_id=b&hl=" + wb.lang + "&q=" + encodeURI( query ),
dataType: "jsonp",
Expand Down

0 comments on commit d4cbcc8

Please sign in to comment.