| Index: chrome/browser/resources/md_history/history.js
|
| diff --git a/chrome/browser/resources/md_history/history.js b/chrome/browser/resources/md_history/history.js
|
| index ceb5dab5be840a6da95a6a160fabe69ed0dc6523..276e62544bdaaa59d5781a389b045d63ce4d3c7f 100644
|
| --- a/chrome/browser/resources/md_history/history.js
|
| +++ b/chrome/browser/resources/md_history/history.js
|
| @@ -22,7 +22,7 @@ window.addEventListener('load', function() {
|
| * @param {Array<HistoryEntry>} results A list of results.
|
| */
|
| function historyResult(info, results) {
|
| - $('history-card-manager').addNewResults(results);
|
| + $('history-card-manager').addNewResults(results, info.term);
|
| }
|
|
|
| /**
|
| @@ -58,3 +58,12 @@ window.addEventListener('keydown', function(e) {
|
| window.addEventListener('resize', function() {
|
| $('history-card-manager').closeMenu();
|
| });
|
| +
|
| +/**
|
| + * When the search is changed refresh the results and load either search results
|
| + * or normal history results.
|
| + */
|
| +window.addEventListener('refresh-results', function(e) {
|
| + $('history-card-manager').resetHistoryResults();
|
| + chrome.send('queryHistory', [e.detail.search, 0, 0, 0, RESULTS_PER_PAGE]);
|
| +});
|
|
|