Skip to content
Snippets Groups Projects
Commit a7523f99 authored by Kevin Abel's avatar Kevin Abel
Browse files

Reverting r87 as the Google API bug has been addressed and rolled out. @see...

Reverting r87 as the Google API bug has been addressed and rolled out. @see http://www.google.com/support/forum/p/customsearch/thread?tid=3a08ffc4ad03d4c7&hl=en
parent cc13f792
No related branches found
No related tags found
No related merge requests found
......@@ -33,11 +33,6 @@ function searchInit() {
if (UNL_Search.do_local_search) {
var local_search = new google.search.CustomSearchControl(UNL_Search.local_search_context);
// WARNING: The following code is an undocumented method of the Google API
// and appears to be on the deprication list, but it fixes a MAJOR bug in
// that prevents the use of linked CSE's
local_search.getWebSearcher().setSiteRestriction(UNL_Search.local_search_context);
// end hack
local_search.setResultSetSize('small');
local_search.setSearchCompleteCallback(UNL_Search, UNL_Search.onSearchComplete);
local_search.draw('local_results', drawOp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment