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

index 0ffd120..e68bb52 100644 (file)
@@ -87,10 +87,12 @@ def alpha_url(baseurl):
                     customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
                     var options = new google.search.DrawOptions();
                     //options.enableSearchResultsOnly();     
+                                       options.setAutoComplete(true);
                     options.enableSearchboxOnly("http://google.com/cse?cx="+cse_api_key, null, true);    
                     customSearchControl.draw('cse');
                 }, true);
             </script>
+                       <div ide="cse" style="width: 100%;">Loading</div>
                        <input type="text" id="search_input" />
                        <input type="button" onclick="executeGoogleSearch()" value="Search" />
         </div>