зеркало из https://github.com/mozilla/pjs.git
Fix for feature bug 44427. checking in code on behalf of jce2@po.cwru.edu
r=myself. a=brendan
This commit is contained in:
Родитель
9b279f56c4
Коммит
90dd947044
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче