gecko-dev/profile/resources/content/deleteProfile.js
2001-03-13 06:35:49 +00:00

38 lines
997 B
JavaScript

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.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" );
cancelButton.setAttribute( "value", "Cancel Yah" );
}
Button2.removeAttribute("collapsed");
okButton.focus();
}
function onDeleteFiles()
{
opener.DeleteProfile( true );
window.close();
}
function onDontDeleteFiles()
{
opener.DeleteProfile( false );
window.close();
}
function onCancel()
{
window.close();
}