From f802ff65cefa7371fa760195aab030f302efc1b3 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Fri, 28 Sep 2012 14:46:55 +0200 Subject: [PATCH] Refining the Google site hint --- akka-docs/_sphinx/themes/akka/layout.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/akka-docs/_sphinx/themes/akka/layout.html b/akka-docs/_sphinx/themes/akka/layout.html index 1094321124..91f2b83c4e 100644 --- a/akka-docs/_sphinx/themes/akka/layout.html +++ b/akka-docs/_sphinx/themes/akka/layout.html @@ -156,9 +156,9 @@ '003065520604945464838:izzukx8-qba', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); - var path = window.location.pathname.split('/').slice(0,3); - if(window.location.hostname && path.length >= 3) { - var site = "site:" + window.location.hostname + '/' + path.join('/').toString(); + var path = window.location.pathname.split('/').slice(0,4); + if(window.location.hostname && path.length >= 4) { + var site = "site:" + window.location.hostname + path.join('/').toString(); customSearchControl.setSearchStartingCallback(this, function(c, s, q) { s.setQueryAddition(site); }); } }, true);