Commit 44264182 authored by timeless%mozdev.org's avatar timeless%mozdev.org

Bug 178178 Sidebar name should not be hardcoded to "Bugzilla"

r=bbaetz a=justdave
parent 4185f96c
...@@ -34,7 +34,10 @@ ...@@ -34,7 +34,10 @@
function addSidebar() { function addSidebar() {
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
{ {
window.sidebar.addPanel ("Bugzilla", "[% Param('urlbase') %]sidebar.cgi", ""); var sidebarname=window.location.host;
if (!/bug/i.test(sidebarname))
sidebarname="Bugzilla "+sidebarname;
window.sidebar.addPanel (sidebarname, "[% Param('urlbase') %]sidebar.cgi", "");
} }
else else
{ {
...@@ -42,7 +45,7 @@ function addSidebar() { ...@@ -42,7 +45,7 @@ function addSidebar() {
if (rv) if (rv)
document.location.href = "http://home.netscape.com/download/index.html"; document.location.href = "http://home.netscape.com/download/index.html";
} }
} }
//--> //-->
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment