OSDN Git Service

adds a parameter to the URL hash on all search queries.
authorScott Main <smain@google.com>
Fri, 25 Sep 2009 03:39:37 +0000 (20:39 -0700)
committerScott Main <smain@google.com>
Fri, 25 Sep 2009 03:41:29 +0000 (20:41 -0700)
depends on change 3583, in order to handle the new parameter

Change-Id: I86ead029371615243cfd809bd7cb2a2f2830c4be

tools/droiddoc/templates/assets/search_autocomplete.js

index 929751f..f2e6f5c 100644 (file)
@@ -168,6 +168,6 @@ function search_focus_changed(obj, focused)
 
 function submit_search() {
   var query = document.getElementById('search_autocomplete').value;
-  document.location = toRoot + 'search.html#q=' + query; // toRoot is initialized in android-developer-docs.js 
+  document.location = '/search.html#q=' + query + '&t=0';
   return false;
 }