303449 - show update history button missing from preferences

This commit is contained in:
ben%bengoodger.com 2005-08-05 22:05:41 +00:00
parent c3ec2009d8
commit 9f022e06d9
5 changed files with 16 additions and 11 deletions

View File

@ -224,12 +224,6 @@ var gAdvancedPane = {
prompter.checkForUpdates();
},
showAutoInstallOptions: function ()
{
document.documentElement.openSubDialog("chrome://mozapps/content/preferences/update.xul",
"", null);
},
showUpdates: function ()
{
var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"]

View File

@ -73,6 +73,9 @@
onchange="gAdvancedPane.updateModeItems();"/>
<preference id="extensions.update.enabled" name="extensions.update.enabled" type="bool"
onchange="gAdvancedPane.updateAddonUpdateUI();"/>
<preference id="app.update.disable_button.showUpdateHistory"
name="app.update.disable_button.showUpdateHistory"
type="bool"/>
<preference id="security.enable_ssl2" name="security.enable_ssl2" type="bool"/>
<preference id="security.enable_ssl3" name="security.enable_ssl3" type="bool"/>
@ -174,6 +177,13 @@
onsynctopreference="return gAdvancedPane.addonWarnSyncTo();"/>
</hbox>
</radiogroup>
<separator/>
<hbox>
<button id="showUpdateHistory"
label="&showUpdates.label;" accesskey="&showUpdates.accesskey;"
preference="app.update.disable_button.showUpdateHistory"
oncommand="gAdvancedPane.showUpdates();"/>
</hbox>
</tabpanel>
<tabpanel orient="vertical">
<groupbox>

View File

@ -55,8 +55,8 @@
<!ENTITY viewSecurityDevices.label "Security Devices">
<!ENTITY viewSecurityDevices.accesskey "y">
<!ENTITY languages.caption "Languages">
<!ENTITY languagesInfo.label "Choose Languages web pages are displayed in.">
<!ENTITY showLanguages.label "Edit Languages...">
<!ENTITY showLanguages.accesskey "L">
<!ENTITY languages.caption "Languages">
<!ENTITY languagesInfo.label "Choose Languages web pages are displayed in.">
<!ENTITY showLanguages.label "Edit Languages...">
<!ENTITY showLanguages.accesskey "L">

View File

@ -75,6 +75,7 @@ var gUpdateHistory = {
var closebuttonlabel = document.documentElement.getAttribute("closebuttonlabel");
var cancelbutton = document.documentElement.getButton("cancel");
cancelbutton.label = closebuttonlabel;
cancelbutton.setAttribute("default", "true");
cancelbutton.focus();
},

View File

@ -2325,7 +2325,7 @@ UpdatePrompt.prototype = {
* See nsIUpdateService.idl
*/
showUpdateHistory: function(parent) {
this._showUI(parent, URI_UPDATE_HISTORY_DIALOG, "modal", "Update:History",
this._showUI(parent, URI_UPDATE_HISTORY_DIALOG, "modal,dialog=yes", "Update:History",
null, null);
},