Bug 79769 - Application input field on helper app dialog should be disabled

on Mac.
r=aaronl@netscape.com, sr=bzbarsky@mit.edu
This commit is contained in:
pkw%us.ibm.com 2003-01-14 23:09:14 +00:00
parent e70f5db228
commit 27238bdeb2

View File

@ -434,18 +434,15 @@ nsHelperAppDialog.prototype = {
// Enable/Disable choose application button and textfield
this.toggleChoice();
// If we're running on the Mac, disable the application <textbox>.
if ( this.mIsMac ) {
this.dialogElement( "appPath" ).disabled = true;
}
},
// Enable pick app button if the user chooses that option.
toggleChoice : function () {
// See what option is selected.
this.dialogElement( "chooseApp" ).disabled =
this.dialogElement( "appPath" ).disabled = !this.dialogElement( "openUsing" ).selected;
var openUsing = this.dialogElement( "openUsing" ).selected;
this.dialogElement( "chooseApp" ).disabled = !openUsing;
// appPath is always disabled on Mac
this.dialogElement( "appPath" ).disabled = !openUsing || this.mIsMac;
this.updateOKButton();
},