mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
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:
parent
33aa663cd0
commit
85d18dbb4a
@ -243,6 +243,9 @@ nsHelperAppDialog.prototype = {
|
||||
} else {
|
||||
this.mDialog.centerWindowOnScreen();
|
||||
}
|
||||
|
||||
// Set initial focus
|
||||
this.dialogElement( "mode" ).focus();
|
||||
},
|
||||
|
||||
// initIntro:
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user