diff options
Diffstat (limited to 'ext/js/display/search-display-controller.js')
-rw-r--r-- | ext/js/display/search-display-controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js index 6bdef2c8..81124bbb 100644 --- a/ext/js/display/search-display-controller.js +++ b/ext/js/display/search-display-controller.js @@ -185,12 +185,12 @@ class SearchDisplayController { e.preventDefault(); e.stopImmediatePropagation(); this._display.blurElement(e.currentTarget); - this._search(true, true, true, null); + this._search(true, 'new', true, null); } _onSearch(e) { e.preventDefault(); - this._search(true, true, true, null); + this._search(true, 'new', true, null); } _onCopy() { @@ -205,7 +205,7 @@ class SearchDisplayController { } this._queryInput.value = text; this._updateSearchHeight(true); - this._search(animate, false, autoSearchContent, ['clipboard']); + this._search(animate, 'clear', autoSearchContent, ['clipboard']); } _onWanakanaEnableChange(e) { @@ -362,7 +362,7 @@ class SearchDisplayController { }); } - _search(animate, history, lookup, flags) { + _search(animate, historyMode, lookup, flags) { const query = this._queryInput.value; const depth = this._display.depth; const url = window.location.href; @@ -373,7 +373,7 @@ class SearchDisplayController { } const details = { focus: false, - history, + historyMode, params: { query }, |