OSDN Git Service

AI 149729: fix search functionatilty for offline docs...
authorScott Main <nobody@android.com>
Thu, 11 Jun 2009 06:40:24 +0000 (23:40 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Thu, 11 Jun 2009 06:40:24 +0000 (23:40 -0700)
  the file references weren't using the local root.
  BUG=1909300

Automated import of CL 149729

tools/droiddoc/templates/assets/search_autocomplete.js

index 2e12e0f..929751f 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; 
+  document.location = toRoot + 'search.html#q=' + query; // toRoot is initialized in android-developer-docs.js 
   return false;
 }