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

r=bbaetz a=justdave
This commit is contained in:
timeless%mozdev.org 2002-11-10 19:26:22 +00:00
Родитель 85c9ca04af
Коммит 911c9a2bc6
1 изменённых файлов: 14 добавлений и 11 удалений

Просмотреть файл

@ -32,17 +32,20 @@
<script type="text/javascript" language="JavaScript"> <script type="text/javascript" language="JavaScript">
<!-- <!--
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))
else sidebarname="Bugzilla "+sidebarname;
{ window.sidebar.addPanel (sidebarname, "[% Param('urlbase') %]sidebar.cgi", "");
var rv = window.confirm ("This page is enhanced for use with Netscape 6. " + "Would you like to upgrade now?"); }
if (rv) else
document.location.href = "http://home.netscape.com/download/index.html"; {
} 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> </script>