зеркало из https://github.com/mozilla/pjs.git
Bug 311503 - Safe mode should offer "cancel" option (now named "Exit") r=mconnor/beltzner
This commit is contained in:
Родитель
15c5d26193
Коммит
e3e6fd0564
|
@ -79,3 +79,8 @@ function onOK() {
|
||||||
restartApp();
|
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;
|
%brandDTD;
|
||||||
<!ENTITY % safeModeDTD SYSTEM "chrome://browser/locale/safeMode.dtd" >
|
<!ENTITY % safeModeDTD SYSTEM "chrome://browser/locale/safeMode.dtd" >
|
||||||
%safeModeDTD;
|
%safeModeDTD;
|
||||||
|
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
|
||||||
|
%browserDTD;
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<?xml-stylesheet href="chrome://global/skin/"?>
|
<?xml-stylesheet href="chrome://global/skin/"?>
|
||||||
|
@ -50,11 +52,18 @@
|
||||||
<dialog id="safeModeDialog"
|
<dialog id="safeModeDialog"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
title="&safeModeDialog.title;"
|
title="&safeModeDialog.title;"
|
||||||
buttons="accept,cancel"
|
buttons="accept,cancel,extra1"
|
||||||
buttonlabelaccept="&changeAndRestartButton.label;"
|
buttonlabelaccept="&changeAndRestartButton.label;"
|
||||||
buttonlabelcancel="&continueButton.label;"
|
#ifdef XP_WIN
|
||||||
|
buttonlabelcancel="&quitApplicationCmdWin.label;"
|
||||||
|
#else
|
||||||
|
buttonlabelcancel="&quitApplicationCmd.label;"
|
||||||
|
#endif
|
||||||
|
buttonlabelextra1="&continueButton.label;"
|
||||||
width="&window.width;"
|
width="&window.width;"
|
||||||
ondialogaccept="onOK()">
|
ondialogaccept="onOK()"
|
||||||
|
ondialogcancel="onCancel()"
|
||||||
|
ondialogextra1="window.close()">
|
||||||
|
|
||||||
<script type="application/x-javascript" src="chrome://browser/content/safeMode.js"/>
|
<script type="application/x-javascript" src="chrome://browser/content/safeMode.js"/>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче