mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
f7c7a4d722
r=timeless, a=ben
38 lines
997 B
JavaScript
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();
|
|
}
|