More CSE debug.
authorRobin H. Johnson <robbat2@gentoo.org>
Fri, 8 Jul 2011 02:23:16 +0000 (02:23 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Fri, 8 Jul 2011 02:23:16 +0000 (02:23 +0000)
web/templates/layout.html

index 0cd182a..8bf9671 100644 (file)
@@ -88,8 +88,9 @@ def alpha_url(baseurl):
                     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.enableSearchboxOnly("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);
             </script>