fix for bug #387172: text in search box in bookmark manager doesn't update until I switch folders

patch=Steve Won <swon@mozilla.com>
r=sspitzer
This commit is contained in:
sspitzer@mozilla.org 2007-07-11 19:09:47 -07:00
Родитель 770ed22a83
Коммит a5f5199c9c
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -217,10 +217,8 @@ var PlacesOrganizer = {
var findCommand = document.getElementById("OrganizerCommand_find:current");
var findLabel = PlacesUtils.getFormattedString("findInPrefix", [node.title]);
findCommand.setAttribute("label", findLabel);
if (PlacesSearchBox.filterCollection == "collection") {
if (PlacesSearchBox.filterCollection == "collection")
PlacesSearchBox.updateCollectionTitle(node.title);
PlacesSearchBox.syncGrayText();
}
},
/**
@ -410,6 +408,8 @@ var PlacesSearchBox = {
}
else
this.searchFilter.grayText = PlacesUtils.getString("searchByDefault");
this.syncGrayText();
},
/**