Bug 415169 ? Saving searches within bookmark folders is broken (r=mano, a=beltzner)

This commit is contained in:
dietrich@mozilla.com 2008-02-04 10:10:28 -08:00
Родитель 9344020f92
Коммит caf927bc0f
1 изменённых файлов: 9 добавлений и 3 удалений

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

@ -290,6 +290,14 @@ var PlacesOrganizer = {
return asQuery(this._content.getResult().root).queryOptions; return asQuery(this._content.getResult().root).queryOptions;
}, },
/**
* Returns the queries associated with the query currently loaded in the
* main places pane.
*/
getCurrentQueries: function PO_getCurrentQueries() {
return asQuery(this._content.getResult().root).getQueries({});
},
/** /**
* Show the migration wizard for importing from a file. * Show the migration wizard for importing from a file.
*/ */
@ -1042,9 +1050,7 @@ var PlacesQueryBuilder = {
var searchTermsField = document.getElementById("advancedSearch1Textbox"); var searchTermsField = document.getElementById("advancedSearch1Textbox");
if (searchTermsField) if (searchTermsField)
setTimeout(function() { searchTermsField.value = PlacesSearchBox.value; }, 10); setTimeout(function() { searchTermsField.value = PlacesSearchBox.value; }, 10);
var query = PlacesUtils.history.getNewQuery(); this.queries = PlacesOrganizer.getCurrentQueries();
query.searchTerms = PlacesSearchBox.value;
this.queries = [query];
return; return;
} }