fix for bug #384670: current collection searches in bookmark organizer window search all of bookmarks

r=dietrich
This commit is contained in:
sspitzer@mozilla.org 2007-06-15 22:03:40 -07:00
parent 672783b34b
commit 623aced10e
2 changed files with 3 additions and 3 deletions

View File

@ -166,6 +166,6 @@ function searchHistory(aInput)
}
gHistoryTree.applyFilter(aInput, false /* onlyBookmarks */,
0 /* folderRestrict */, null);
null /* folderRestrict */, null);
}

View File

@ -364,7 +364,7 @@ var PlacesSearchBox = {
switch (PlacesSearchBox.filterCollection) {
case "collection":
var folderId = content.getResult().root.itemId;
content.applyFilter(filterString, true, folderId, OptionsFilter);
content.applyFilter(filterString, true, [folderId], OptionsFilter);
PO.setHeaderText(PO.HEADER_TYPE_SEARCH, filterString);
break;
case "bookmarks":
@ -374,7 +374,7 @@ var PlacesSearchBox = {
PlacesOrganizer.onPlaceSelected();
break;
case "all":
content.applyFilter(filterString, false, 0, OptionsFilter);
content.applyFilter(filterString, false, null, OptionsFilter);
PO.setHeaderText(PO.HEADER_TYPE_SEARCH, filterString);
break;
}