From: x2003bruneau Date: Fri, 26 Jan 2007 23:16:41 +0000 (+0000) Subject: Make addFirefoxEngine global X-Git-Tag: xorg/0.9.13~66 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=39fd8f508829b3b5b27a1bd580e2dd1857602294;p=platal.git Make addFirefoxEngine global git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1405 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index 68c1dab..71d3dae 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -42,6 +42,20 @@ function getNow() { } // }}} +// {{{ Firefox + +function addFirefoxEngine() { + if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) { + window.sidebar.addSearchEngine( + "http://www.polytechnique.org/xorg.src", + "http://www.polytechnique.org/images/xorg.png", + "Recherche rapide X.org", + "Academic"); + } else { alert("Impossible d'installer la barre de recherche Firefox"); } +} + + +// }}} // {{{ Events function eventClosure(obj, methodName) { diff --git a/templates/search/quick.tpl b/templates/search/quick.tpl index 63baf7a..fe6d15b 100644 --- a/templates/search/quick.tpl +++ b/templates/search/quick.tpl @@ -52,22 +52,7 @@ sans distinction de casse et sans tenir compte des accents. {if $smarty.session.auth ge AUTH_COOKIE}

Barre de recherche pour Firefox

- -

Tu peux installer la barre de recherche rapide directement dans ton navigateur. +

Tu peux installer la barre de recherche rapide directement dans ton navigateur.

{/if}