14 Commits

Author SHA1 Message Date
Scott Main
13e4ee1c31 docs: fix a bug in the search results in which clicking a sorting tab
does not open that tab until you click a tab again. This occured due
to the order of events being out of order in terms of when we invoke
the click() on a tab based on the search being invoked. I'm pretty sure
this worked fine before, so I think this might have been introduced
by a behavior change in CSE. The fix is to simply invoke the click()
for a tab when the respective search results actually return using
an additional callback.

Change-Id: Ib58fdc75b3095ca2a3a2f5f892e778acdbc1dacd
2011-10-03 15:42:21 -07:00
Scott Main
702a6caa20 docs: use new CSE to show results for all sites
Change-Id: Idd85d78fcdd90381b6f03406a76b13e02d540e37
2011-06-22 13:58:32 -07:00
Scott Main
d644edb6d8 docs: reference the history JS file with docRoot in order to
make offline doc searches work. (I think this was a regression
due to a missed merge.)
Bug: 1909300
2010-01-25 14:47:46 -08:00
Scott Main
3534daddee docs: fix XSS vulnerability in search
add a function that uses replace() to replace all
instances of '<' and '>' with the HTML entities and use
this wherever the query text is added onto the page.
2009-10-28 14:42:40 -07:00
Scott Main
e9e1cdd556 decode the search string before putting it into the search control.
this fixes a safari-only bug in which encoded chars were inserted
into the search string.

http://b/issue?id=2031559

Change-Id: Ie60902bafcbb327d488b921f8d3925aaf9ff0566
2009-10-01 15:20:35 -07:00
Scott Main
c0cd11f4da implement browser history for tabbed search results...
this adds a parameter to the URL hash on all search queries.
the main motive is to allow searches from the blog to automatically open the blog tab.

Change-Id: Ib81896948e63e8173d521713496bb98065683ce7
2009-09-24 20:35:14 -07:00
Scott Main
aa25df2452 AI 149729: fix search functionatilty for offline docs...
the file references weren't using the local root.
  BUG=1909300

Automated import of CL 149729
2009-06-10 23:40:25 -07:00
The Android Open Source Project
9066cfe988 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce auto import from //depot/cupcake/@135843 2009-03-03 18:28:45 -08:00
The Android Open Source Project
076357b856 auto import from //depot/cupcake/@132589 2009-03-03 14:04:24 -08:00
The Android Open Source Project
3dec7d563a auto import from //depot/cupcake/@137055 2009-03-02 22:54:33 -08:00
The Android Open Source Project
d24b8183b9 auto import from //branches/cupcake/...@130745 2009-02-10 15:44:00 -08:00
The Android Open Source Project
f013e1afd1 Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
The Android Open Source Project
54b6cfa9a9 Initial Contribution 2008-10-21 07:00:00 -07:00