зеркало из https://github.com/mozilla/pjs.git
bug 164489 r=timeless sr=bz contentAreaUtils.js should use appendFilters for well known types (text, allfiles)
This commit is contained in:
Родитель
802563e3ad
Коммит
209895d405
|
@ -515,7 +515,7 @@ function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode)
|
|||
aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html");
|
||||
aFilePicker.appendFilter(bundle.GetStringFromName("WebPageHTMLOnlyFilter"), "*.htm; *.html");
|
||||
if (aSaveMode == MODE_COMPLETE)
|
||||
aFilePicker.appendFilter(bundle.GetStringFromName("TextOnlyFilter"), "*.txt");
|
||||
aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterText);
|
||||
break;
|
||||
default:
|
||||
var mimeInfo = getMIMEInfoForType(aContentType);
|
||||
|
@ -534,11 +534,11 @@ function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode)
|
|||
if (extCount.value > 0) {
|
||||
aFilePicker.appendFilter(mimeInfo.Description, extString);
|
||||
} else {
|
||||
aFilePicker.appendFilter(bundle.GetStringFromName("AllFilesFilter"), "*.*");
|
||||
aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);
|
||||
}
|
||||
}
|
||||
else
|
||||
aFilePicker.appendFilter(bundle.GetStringFromName("AllFilesFilter"), "*.*");
|
||||
aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ SaveLinkTitle=Save As
|
|||
DefaultSaveFileName=index
|
||||
WebPageCompleteFilter=Web Page, complete
|
||||
WebPageHTMLOnlyFilter=Web Page, HTML only
|
||||
TextOnlyFilter=Text File
|
||||
AllFilesFilter=All Files
|
||||
|
||||
# LOCALIZATION NOTE (filesFolder):
|
||||
# This is the name of the folder that is created parallel to a HTML file
|
||||
|
|
Загрузка…
Ссылка в новой задаче