OSDN Git Service

fix search for offline docs. again.
authorScott Main <smain@google.com>
Mon, 26 Oct 2009 21:44:48 +0000 (14:44 -0700)
committerScott Main <smain@google.com>
Mon, 26 Oct 2009 21:44:48 +0000 (14:44 -0700)
tools/droiddoc/templates/assets/search_autocomplete.js

index f2e6f5c..086674a 100644 (file)
@@ -168,6 +168,6 @@ function search_focus_changed(obj, focused)
 
 function submit_search() {
   var query = document.getElementById('search_autocomplete').value;
-  document.location = '/search.html#q=' + query + '&t=0';
+  document.location = toRoot + 'search.html#q=' + query + '&t=0';
   return false;
 }