aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-07-08 02:28:12 (GMT)
committerRobin H. Johnson <robbat2@gentoo.org>2011-07-08 02:28:12 (GMT)
commit886df2ea389104976eee87a728b469cc2ac1ab02 (patch)
tree93599d9338a480c097662d6e8318245347519ac9
parentMore CSE debug. (diff)
downloadpackages-886df2ea389104976eee87a728b469cc2ac1ab02.zip
packages-886df2ea389104976eee87a728b469cc2ac1ab02.tar.gz
packages-886df2ea389104976eee87a728b469cc2ac1ab02.tar.bz2
CSE API seems annoying.
-rw-r--r--web/templates/layout.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/templates/layout.html b/web/templates/layout.html
index 8bf9671..3b75cbc 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -87,9 +87,9 @@ def alpha_url(baseurl):
customSearchControl = new google.search.CustomSearchControl(cse_api_key);
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
- //options.enableSearchResultsOnly();
- options.enableSearchResultsOnly("http://google.com/cse?cx="+cse_api_key, null, true);
- options.setAutoComplete(true);
+ options.setAutoComplete(true);
+ options.enableSearchResultsOnly();
+ //options.enableSearchResultsOnly("http://google.com/cse?cx="+cse_api_key, null, true);
//options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);
customSearchControl.draw('cse');
}, true);