Bug 311503 - Safe mode should offer "cancel" option (now named "Exit") r=mconnor/beltzner

This commit is contained in:
bsmedberg%covad.net 2005-10-12 00:29:11 +00:00
Родитель 15c5d26193
Коммит e3e6fd0564
2 изменённых файлов: 18 добавлений и 4 удалений

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

@ -79,3 +79,8 @@ function onOK() {
restartApp();
}
function onCancel() {
var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"]
.getService(Components.interfaces.nsIAppStartup);
appStartup.quit(appStartup.eForceQuit);
}

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

@ -43,6 +43,8 @@
%brandDTD;
<!ENTITY % safeModeDTD SYSTEM "chrome://browser/locale/safeMode.dtd" >
%safeModeDTD;
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
%browserDTD;
]>
<?xml-stylesheet href="chrome://global/skin/"?>
@ -50,11 +52,18 @@
<dialog id="safeModeDialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&safeModeDialog.title;"
buttons="accept,cancel"
buttons="accept,cancel,extra1"
buttonlabelaccept="&changeAndRestartButton.label;"
buttonlabelcancel="&continueButton.label;"
#ifdef XP_WIN
buttonlabelcancel="&quitApplicationCmdWin.label;"
#else
buttonlabelcancel="&quitApplicationCmd.label;"
#endif
buttonlabelextra1="&continueButton.label;"
width="&window.width;"
ondialogaccept="onOK()">
ondialogaccept="onOK()"
ondialogcancel="onCancel()"
ondialogextra1="window.close()">
<script type="application/x-javascript" src="chrome://browser/content/safeMode.js"/>