home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / communicator / profile / deleteProfile.js < prev    next >
Text File  |  2003-06-08  |  780b  |  33 lines

  1. function Startup()
  2. {
  3.   var bundle = document.getElementById("bundle_profileManager");
  4.   doSetOKCancel(onDontDeleteFiles, onCancel, onDeleteFiles, null);
  5.   var okButton = document.getElementById("ok");
  6.   var Button2 = document.getElementById("Button2");
  7.   var cancelButton = document.getElementById("cancel");
  8.  
  9.   okButton.setAttribute("label", bundle.getString("dontDeleteFiles"));
  10.   Button2.setAttribute("label", bundle.getString("deleteFiles"));
  11.   cancelButton.setAttribute("label", bundle.getString("cancel"));
  12.  
  13.   Button2.removeAttribute("collapsed");
  14.   okButton.focus();
  15. }
  16.  
  17. function onDeleteFiles()
  18. {
  19.   opener.DeleteProfile(true);
  20.   window.close();
  21. }
  22.  
  23. function onDontDeleteFiles()
  24. {
  25.   opener.DeleteProfile(false);
  26.   window.close();
  27. }
  28.  
  29. function onCancel()
  30. {
  31.   window.close();
  32. }
  33.