Bug 144743 javascript strict warnings in importDialog.js. r/sr=bienvenu

This commit is contained in:
bugzilla%standard8.demon.co.uk 2006-06-09 17:41:25 +00:00
Родитель 862a6a13c7
Коммит 6c920d0aac
2 изменённых файлов: 5 добавлений и 13 удалений

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

@ -125,15 +125,6 @@ function CheckIfLocalFolderExists()
}
}
function GetStringBundle(aURL)
{
var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService();
stringBundleService = stringBundleService.QueryInterface(Components.interfaces.nsIStringBundleService);
var stringBundle = stringBundleService.createBundle(aURL);
if (stringBundle)
return stringBundle.QueryInterface(Components.interfaces.nsIStringBundle);
}
function ImportDialogOKButton()
{
var listbox = document.getElementById('moduleList');
@ -839,10 +830,10 @@ function ImportAddress( module, success, error) {
if (selectedModuleName == gImportMsgsBundle.getString('Comm4xImportName'))
filePicker.appendFilter(gImportMsgsBundle.getString('Comm4xFiles'),"*.na2");
else {
var addressbookBundle = GetStringBundle("chrome://messenger/locale/addressbook/addressBook.properties");
filePicker.appendFilter(addressbookBundle.GetStringFromName('LDIFFiles'), "*.ldi; *.ldif");
filePicker.appendFilter(addressbookBundle.GetStringFromName('CSVFiles'), "*.csv");
filePicker.appendFilter(addressbookBundle.GetStringFromName('TABFiles'), "*.tab; *.txt");
var addressbookBundle = document.getElementById("bundle_addressbook");
filePicker.appendFilter(addressbookBundle.getString('LDIFFiles'), "*.ldi; *.ldif");
filePicker.appendFilter(addressbookBundle.getString('CSVFiles'), "*.csv");
filePicker.appendFilter(addressbookBundle.getString('TABFiles'), "*.tab; *.txt");
filePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);
}

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

@ -54,6 +54,7 @@
title="&importDialog.windowTitle;">
<stringbundle id="bundle_importMsgs" src="chrome://messenger/locale/importMsgs.properties"/>
<stringbundle id="bundle_addressbook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
<script type="application/x-javascript" src="chrome://messenger/content/importDialog.js"/>
<keyset id="dialogKeys"/>