Bug 408860 - Library forward button broken and back button toggles last two selected items (for mak77@supereva.it, r=mano, a=beltzner)

This commit is contained in:
dietrich@mozilla.com 2008-04-29 10:59:18 -07:00
Родитель 2d43080b04
Коммит 08d35ffd7a
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -215,12 +215,12 @@ var PlacesOrganizer = {
// Update the right-pane contents.
// We must update also if the user clears the search box, in that case
// we are called with resetSearchBox == false.
if (this._content.place != placeURI || !resetSearchBox)
if (this._content.place != placeURI || !resetSearchBox) {
this._content.place = placeURI;
// This just updates the back/forward buttons, it doesn't call us back
// because node.uri is our current selection.
this.location = node.uri;
// Update the back/forward buttons.
this.location = node.uri;
}
// Make sure the search UI is hidden.
PlacesSearchBox.hideSearchUI();