summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortimeless%mozdev.org <>2002-11-11 04:26:22 +0100
committertimeless%mozdev.org <>2002-11-11 04:26:22 +0100
commit44264182f60b8ab23ec84feac0b487ff922f2e94 (patch)
treef74b97e6d76cb786d41c79293951b1b45273b5c6
parent4185f96c5ad7cd8e36d8c4136e7f5971ed489fcf (diff)
downloadbugzilla-44264182f60b8ab23ec84feac0b487ff922f2e94.tar.gz
bugzilla-44264182f60b8ab23ec84feac0b487ff922f2e94.tar.xz
Bug 178178 Sidebar name should not be hardcoded to "Bugzilla"
r=bbaetz a=justdave
-rw-r--r--template/en/default/index.html.tmpl25
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>