Bug 256927 - Add the 'all files' filter even if not specified. r=silver@warwickcompsoc.co.uk Patch by ajschult@verizon.net
This commit is contained in:
Родитель
1771de690b
Коммит
e6346e62ac
|
@ -125,6 +125,8 @@ function futils_nosepicker(initialPath, typeList, attribs)
|
|||
picker.displayDirectory = localFile
|
||||
}
|
||||
|
||||
var allIncluded = false;
|
||||
|
||||
if (typeof typeList == "string")
|
||||
typeList = typeList.split(" ");
|
||||
|
||||
|
@ -135,6 +137,7 @@ function futils_nosepicker(initialPath, typeList, attribs)
|
|||
switch (typeList[i])
|
||||
{
|
||||
case "$all":
|
||||
allIncluded = true;
|
||||
picker.appendFilters(FILTER_ALL);
|
||||
break;
|
||||
|
||||
|
@ -164,6 +167,9 @@ function futils_nosepicker(initialPath, typeList, attribs)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!allIncluded)
|
||||
picker.appendFilters(FILTER_ALL);
|
||||
|
||||
return picker;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче