mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 423250: Library search results don't refresh after clearing search box contents, patch by Marco Bonardo <mak77@supereva.it>, r=dietrich, a=beltzner
This commit is contained in:
parent
22360d31ab
commit
1d5ef68760
@ -212,8 +212,10 @@ var PlacesOrganizer = {
|
|||||||
options.excludeItems = false;
|
options.excludeItems = false;
|
||||||
var placeURI = PlacesUtils.history.queriesToQueryString(queries, queries.length, options);
|
var placeURI = PlacesUtils.history.queriesToQueryString(queries, queries.length, options);
|
||||||
|
|
||||||
// update the right-pane contents
|
// Update the right-pane contents.
|
||||||
if (this._content.place != placeURI)
|
// 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)
|
||||||
this._content.place = placeURI;
|
this._content.place = placeURI;
|
||||||
|
|
||||||
// This just updates the back/forward buttons, it doesn't call us back
|
// This just updates the back/forward buttons, it doesn't call us back
|
||||||
|
Loading…
Reference in New Issue
Block a user