59816 - clear history button should be disabled if all entries have been deleted (redux). r=ben sr=alecf

This commit is contained in:
blakeross%telocity.com 2002-02-13 22:38:13 +00:00
Родитель 38316ad381
Коммит 08c50bb84b
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -111,7 +111,6 @@
pref.setComplexValue("general.open_location.last_url",
Components.interfaces.nsISupportsWString,
str);
button.setAttribute("disabled","true");
}
]]>
</script>
@ -126,7 +125,7 @@
<label value="&days.label;"/>
<spacer flex="1"/>
<button label="&clearHistory.label;" accesskey="&clearHistory.accesskey;"
oncommand="prefClearGlobalHistory();"
oncommand="prefClearGlobalHistory(); this.disabled = true;"
id="browserClearHistory"
prefstring="pref.browser.history.disable_button.clear_hist"/>
</hbox>
@ -139,7 +138,7 @@
<description flex="1">&clearLocationBar.label;</description>
<hbox align="center" pack="end">
<button id="ClearUrlBarHistoryButton" label="&clearLocationBarButton.label;" accesskey="&clearLocationBarButton.accesskey;"
oncommand="prefClearUrlbarHistory();"
oncommand="prefClearUrlbarHistory(); this.disabled = true;"
prefstring="pref.browser.history.disable_button.clear_urlbar"/>
</hbox>
</hbox>