This commit is contained in:
law%netscape.com 2001-05-02 22:31:12 +00:00
Родитель 68d71281ad
Коммит f2dd24c0fe
4 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -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.