mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 855657 - Follow-up comments for bug 838705. r=enndeakin
This commit is contained in:
parent
b14c57f2e8
commit
4ccc8f4cf3
@ -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