mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 855657 - Follow-up comments for bug 838705. r=enndeakin
This commit is contained in:
parent
823b03ddea
commit
5afdd66ce8
@ -572,12 +572,16 @@
|
||||
let files = tipElement.files;
|
||||
|
||||
if (files.length == 0) {
|
||||
var bundle = Services.strings.createBundle("chrome://global/locale/layout/HtmlForm.properties");
|
||||
if (tipElement.multiple) {
|
||||
titleText = bundle.GetStringFromName("NoFilesSelected");
|
||||
} else {
|
||||
titleText = bundle.GetStringFromName("NoFileSelected");
|
||||
}
|
||||
try {
|
||||
var bundle = Components.classes['@mozilla.org/intl/stringbundle;1']
|
||||
.getService(Components.interfaces.nsIStringBundleService)
|
||||
.createBundle("chrome://global/locale/layout/HtmlForm.properties");
|
||||
if (tipElement.multiple) {
|
||||
titleText = bundle.GetStringFromName("NoFilesSelected");
|
||||
} else {
|
||||
titleText = bundle.GetStringFromName("NoFileSelected");
|
||||
}
|
||||
} catch(e) {}
|
||||
} else {
|
||||
titleText = files[0].name;
|
||||
for (let i=1; i<files.length; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user