mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 52454; last-minute tweaks; r=pchen@netscape.com, sr=ben@netscape.com
This commit is contained in:
parent
68d71281ad
commit
f2dd24c0fe
1
embedding/components/ui/helperAppDlg/MANIFEST
Normal file
1
embedding/components/ui/helperAppDlg/MANIFEST
Normal file
@ -0,0 +1 @@
|
||||
nsHelperAppDlg.js
|
@ -27,14 +27,14 @@ MODULE=helperAppDlg
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
XPIDLSRCS = \
|
||||
.\nsIHelperAppLauncherDialog.idl \
|
||||
./nsIHelperAppLauncherDialog.idl \
|
||||
$(NULL)
|
||||
|
||||
JSCOMPONENTS = \
|
||||
.\nsHelperAppDlg.js \
|
||||
./nsHelperAppDlg.js \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
install:: $(JSCOMPONENTS)
|
||||
!@$(MAKE_INSTALL) $(JSCOMPONENTS) $(DIST)\bin\components
|
||||
$(INSTALL) $(JSCOMPONENTS) $(DIST)/bin/components
|
||||
|
@ -0,0 +1 @@
|
||||
saveDialogTitle=Enter name of file to save to...
|
@ -48,7 +48,7 @@ function nsHelperAppDialog() {
|
||||
|
||||
nsHelperAppDialog.prototype = {
|
||||
// Turn this on to get debugging messages.
|
||||
debug: true,
|
||||
debug: false,
|
||||
|
||||
// Dump text (if debug is on).
|
||||
dump: function( text ) {
|
||||
@ -99,7 +99,6 @@ nsHelperAppDialog.prototype = {
|
||||
.createBundle( "chrome://global/locale/helperAppLauncher.properties");
|
||||
|
||||
var windowTitle = bundle.GetStringFromName( "saveDialogTitle" );
|
||||
|
||||
|
||||
var parent = aContext
|
||||
.QueryInterface( Components.interfaces.nsIInterfaceRequestor )
|
||||
@ -284,9 +283,9 @@ nsHelperAppDialog.prototype = {
|
||||
if ( !app.exists() ) {
|
||||
// Show alert and try again.
|
||||
var msg = this.replaceInsert( this.getString( "badApp" ), 1, app.unicodePath );
|
||||
var dlgs = Components.classes[ "@mozilla.org/appshell/commonDialogs;1" ]
|
||||
.getService( Components.interfaces.nsICommonDialogs );
|
||||
dlgs.Alert( this.mDialog, this.getString( "badApp.title" ), msg );
|
||||
var svc = Components.classes[ "@mozilla.org/embedcomp/prompt-service;1" ]
|
||||
.getService( Components.interfaces.nsIPromptService );
|
||||
svc.alert( this.mDialog, this.getString( "badApp.title" ), msg );
|
||||
// Disable the OK button.
|
||||
this.dialogElement( "ok" ).disabled = true;
|
||||
// Leave dialog up.
|
||||
|
Loading…
Reference in New Issue
Block a user