From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qf0nt-0002Et-Cw for garchives@archives.gentoo.org; Fri, 08 Jul 2011 02:28:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 949A621C022; Fri, 8 Jul 2011 02:28:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 64CE321C022 for ; Fri, 8 Jul 2011 02:28:20 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE25E2AC0C3 for ; Fri, 8 Jul 2011 02:28:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by flycatcher.gentoo.org (Postfix) with ESMTP id 8F55120051 for ; Fri, 8 Jul 2011 02:28:18 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <886df2ea389104976eee87a728b469cc2ac1ab02.robbat2@gentoo> Subject: [gentoo-commits] packages:master commit in: web/templates/ X-VCS-Repository: packages X-VCS-Files: web/templates/layout.html X-VCS-Directories: web/templates/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 886df2ea389104976eee87a728b469cc2ac1ab02 Date: Fri, 8 Jul 2011 02:28:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 9e85599677d39e424b0837fe64734ebc commit: 886df2ea389104976eee87a728b469cc2ac1ab02 Author: Robin H. Johnson gentoo org> AuthorDate: Fri Jul 8 02:28:12 2011 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Fri Jul 8 02:28:12 2011 +0000 URL: http://sources.gentoo.org/gitweb/?p=3Dpackages.git;a=3Dcommit= ;h=3D886df2ea CSE API seems annoying. --- web/templates/layout.html | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/templates/layout.html b/web/templates/layout.html index 8bf9671..3b75cbc 100644 --- a/web/templates/layout.html +++ b/web/templates/layout.html @@ -87,9 +87,9 @@ def alpha_url(baseurl): customSearchControl =3D new google.search.CustomSear= chControl(cse_api_key); customSearchControl.setResultSetSize(google.search.S= earch.FILTERED_CSE_RESULTSET); var options =3D new google.search.DrawOptions(); - //options.enableSearchResultsOnly(); =20 - options.enableSearchResultsOnly("http://google.com/c= se?cx=3D"+cse_api_key, null, true); =20 - options.setAutoComplete(true); + options.setAutoComplete(true); + options.enableSearchResultsOnly(); =20 + //options.enableSearchResultsOnly("http://google.com= /cse?cx=3D"+cse_api_key, null, true); =20 //options.enableSearchboxOnly("http://google.com/cse= ?cx=3D"+cse_api_key, null, true); =20 customSearchControl.draw('cse'); }, true);