Fix for bugs 67803/74012/79862/98797. Adds code to set initial focus to

downloading and progress dialogs, and removes code to disable the "close
this dialog" checkbox from the progress dialog.  r=aaronl, sr=ben
This commit is contained in:
law%netscape.com 2001-10-11 22:09:56 +00:00
parent 33aa663cd0
commit 85d18dbb4a
2 changed files with 10 additions and 1 deletions

View File

@ -243,6 +243,9 @@ nsHelperAppDialog.prototype = {
} else {
this.mDialog.centerWindowOnScreen();
}
// Set initial focus
this.dialogElement( "mode" ).focus();
},
// initIntro:

View File

@ -353,6 +353,12 @@ function onLoad() {
} else {
centerWindowOnScreen();
}
// Set initial focus
if ( !completed )
{
keepProgressWindowUpBox.focus();
}
}
function onUnload()
@ -417,6 +423,7 @@ function setupPostProgressUI()
{
cancelButton.label = getString("close");
cancelButton.setAttribute("onclick", "window.close()");
cancelButton.focus();
}
// enable the open and open folder buttons
@ -431,7 +438,6 @@ function setupPostProgressUI()
dialog.pause.disabled = true; // setAttribute("disabled", true);
dialog.resume.disabled = true;
keepProgressWindowUpBox.disabled = true;
}