fix bug 71695 - Buttons on delete profile dialog - all include 'yah'

r=timeless, a=ben
This commit is contained in:
maolson%earthlink.net 2001-03-13 06:35:49 +00:00
parent 6af6ab8297
commit f7c7a4d722
2 changed files with 9 additions and 7 deletions

View File

@ -1,16 +1,15 @@
var bundle = window.opener.bundle;
function Startup()
{
var bundle = document.getElementById("bundle_profileManager");
doSetOKCancel( onDontDeleteFiles, onCancel, onDeleteFiles, null );
var okButton = document.getElementById("ok");
var Button2 = document.getElementById("Button2");
var cancelButton = document.getElementById("cancel");
try {
okButton.setAttribute( "value", bundle.GetStringFromName("dontDeleteFiles") );
Button2.setAttribute( "value", bundle.GetStringFromName("deleteFiles") );
cancelButton.setAttribute( "value", bundle.GetStringFromName("cancel") );
okButton.setAttribute("value", bundle.getString("dontDeleteFiles"));
Button2.setAttribute("value", bundle.getString("deleteFiles"));
cancelButton.setAttribute("value", bundle.getString("cancel"));
} catch(e) {
okButton.setAttribute( "value", "Don't Delete Files Yah" );
Button2.setAttribute( "value", "Delete Files Yah" );
@ -35,4 +34,4 @@ function onDontDeleteFiles()
function onCancel()
{
window.close();
}
}

View File

@ -20,7 +20,10 @@
title="&title;"
onload="Startup();">
<script language="javascript" src="chrome://communicator/content/profile/deleteProfile.js"></script>
<stringbundle id="bundle_profileManager"
src="chrome://communicator/locale/profile/profileManager.properties"/>
<script type="application/x-javascript"
src="chrome://communicator/content/profile/deleteProfile.js"/>
<keyset id="keyset"/>