Fix for feature bug 44427. checking in code on behalf of jce2@po.cwru.edu

r=myself. a=brendan
This commit is contained in:
radha%netscape.com 2006-05-17 02:25:49 +00:00
Родитель 9b279f56c4
Коммит 90dd947044
1 изменённых файлов: 21 добавлений и 1 удалений

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

@ -34,10 +34,29 @@
<script language="javascript" src="chrome://global/content/strres.js"></script>
<script language="javascript" src="chrome://communicator/content/pref/prefutilities.js"></script>
<script language="javascript" src="chrome://global/content/nsJSComponentManager.js">
</script>
<script language="JavaScript">
<![CDATA[
_elementIDs = ["startupPage", "browserStartupHomepage", "histDay"];
]]>
function Startup()
{
var urlBarHist = nsJSComponentManager.getService("component://netscape/browser/urlbarhistory",
"nsIUrlbarHistory");
if ( urlBarHist )
{
var button = document.getElementById("ClearUrlBarHistoryButton");
if ( urlBarHist.count == 0 )
{
button.setAttribute("disabled","true");
}
else
{
button.removeAttribute("disabled");
}
}
}
</script>
<box class="box-smallheader" title="&lHeader;"/>
@ -96,7 +115,8 @@
<box autostretch="never">
<html flex="1">&clearLocationBar.label;</html>
<box autostretch="never" halign="right">
<button class="dialog" value="&clearLocationBarButton.label;" accesskey="&clearLocationBarButton.accesskey;"/>
<button class="dialog" id="ClearUrlBarHistoryButton" value="&clearLocationBarButton.label;" accesskey="&clearLocationBarButton.accesskey;"
oncommand="prefClearUrlbarHistory();"/>
</box>
</box>
</titledbox>