зеркало из https://github.com/mozilla/gecko-dev.git
Bug 680779 - Fall back to single file chooser on Android for input[type=file multiple]. r=blassey
This commit is contained in:
Родитель
6910b74f15
Коммит
98d3ee189f
|
@ -45,7 +45,10 @@ NS_IMPL_ISUPPORTS1(nsFilePicker, nsIFilePicker)
|
|||
NS_IMETHODIMP nsFilePicker::Init(nsIDOMWindow *parent, const nsAString& title,
|
||||
PRInt16 mode)
|
||||
{
|
||||
return nsIFilePicker::modeOpen == mode ? NS_OK : NS_ERROR_NOT_IMPLEMENTED;
|
||||
return (mode == nsIFilePicker::modeOpen ||
|
||||
mode == nsIFilePicker::modeOpenMultiple)
|
||||
? NS_OK
|
||||
: NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsFilePicker::AppendFilter(const nsAString& /*title*/,
|
||||
|
|
Загрузка…
Ссылка в новой задаче