diff options
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/index.html.tmpl | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl index 9b34d15ee..07cdf63b5 100644 --- a/template/en/default/index.html.tmpl +++ b/template/en/default/index.html.tmpl @@ -32,17 +32,20 @@ <script type="text/javascript" language="JavaScript"> <!-- function addSidebar() { - if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) - { - window.sidebar.addPanel ("Bugzilla", "[% Param('urlbase') %]sidebar.cgi", ""); - } - else - { - var rv = window.confirm ("This page is enhanced for use with Netscape 6. " + "Would you like to upgrade now?"); - if (rv) - document.location.href = "http://home.netscape.com/download/index.html"; - } - } + if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) + { + var sidebarname=window.location.host; + if (!/bug/i.test(sidebarname)) + sidebarname="Bugzilla "+sidebarname; + window.sidebar.addPanel (sidebarname, "[% Param('urlbase') %]sidebar.cgi", ""); + } + else + { + var rv = window.confirm ("This page is enhanced for use with Netscape 6. " + "Would you like to upgrade now?"); + if (rv) + document.location.href = "http://home.netscape.com/download/index.html"; + } +} //--> </script> |