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:
silver%warwickcompsoc.co.uk 2004-09-06 15:10:33 +00:00
Родитель 1771de690b
Коммит e6346e62ac
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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;
}