| 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 50bf72dc96630f86982e1318afeacc0a29a81c23..f0ae49e67c2306808403d7812abb576ceee33c1f 100644
|
| --- a/chrome/browser/resources/md_history/history.js
|
| +++ b/chrome/browser/resources/md_history/history.js
|
| @@ -67,6 +67,15 @@ window.addEventListener('resize', function() {
|
| $('history-list').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-list').resetHistoryResults();
|
| + chrome.send('queryHistory', [e.detail.search, 0, 0, 0, RESULTS_PER_PAGE]);
|
| +});
|
| +
|
| // Chrome Callbacks-------------------------------------------------------------
|
|
|
| /**
|
| @@ -75,7 +84,7 @@ window.addEventListener('resize', function() {
|
| * @param {Array<HistoryEntry>} results A list of results.
|
| */
|
| function historyResult(info, results) {
|
| - $('history-list').addNewResults(results);
|
| + $('history-list').addNewResults(results, info.term);
|
| }
|
|
|
| /**
|
|
|