diff --git a/docs/html/search.jd b/docs/html/search.jd index 339ce2ded35ca..407bc86b570b2 100644 --- a/docs/html/search.jd +++ b/docs/html/search.jd @@ -64,11 +64,14 @@ page.title=Search Results // upon ajax search, refresh the url and search title searchControl.setSearchStartingCallback(this, function(control, searcher, query) { + $("#searchTitle").html("search results for " + escapeHTML(query) + ""); + // save the tab index from the hash tabIndex = location.hash.split("&t=")[1]; - - $("#searchTitle").html("search results for " + escapeHTML(query) + ""); $.history.add('q=' + query + '&t=' + tabIndex); + }); + + searchControl.setSearchCompleteCallback(this, function(control, searcher) { openTab(); });