From d4cbcc88e732200f3bc12f7ec9e21a125be8ff94 Mon Sep 17 00:00:00 2001 From: Laurent Goderre Date: Fri, 21 Nov 2014 15:49:29 -0500 Subject: [PATCH] Fixed the search autocomplete --- src/theme.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/theme.js b/src/theme.js index bba858e53..5d0c0287c 100644 --- a/src/theme.js +++ b/src/theme.js @@ -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",