bug 395139: only filter on displayed values in the Applications prefpane; r=gavin, a=mconnor

This commit is contained in:
myk%mozilla.org 2007-09-17 18:39:26 +00:00
Родитель f48ee2a181
Коммит 905fca07bf
1 изменённых файлов: 1 добавлений и 8 удалений

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

@ -987,17 +987,10 @@ var gApplicationsPane = {
return visibleTypes;
},
// FIXME: we filter on type and primary extension, but we don't show those
// values to users, unlike the description and action description, which we
// do show, and that could be confusing, so filter only on the values we show.
// Filed as bug 395139.
_matchesFilter: function(aType) {
var filterValue = this._filter.value.toLowerCase();
return aType.description.toLowerCase().indexOf(filterValue) != -1 ||
this._describePreferredAction(aType).toLowerCase().indexOf(filterValue) != -1 ||
aType.type.toLowerCase().indexOf(filterValue) != -1 ||
(aType.primaryExtension &&
aType.primaryExtension.toLowerCase().indexOf(filterValue) != -1);
this._describePreferredAction(aType).toLowerCase().indexOf(filterValue) != -1;
},
/**