aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-10-09 17:06:51 -0400
committerGitHub <noreply@github.com>2021-10-09 17:06:51 -0400
commit0a8992d21550dff1176820d434b5dd7e4f233749 (patch)
tree70f06b7add2971a7bd3c41f5a63327a9040fba3f /ext/js/display/display.js
parent0e4b769390ec88e609e862776dff2601227baaa5 (diff)
Search query back button (#1981)
* Always allow history to go back/forward when using browser history * Add a back button which is visible when using the query parser
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index ed1af17e..ed708b3a 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -1538,9 +1538,7 @@ class Display extends EventDispatcher {
}
_triggerContentUpdateStart() {
- let {content} = this._history;
- if (typeof content !== 'object' || content === null) { content = {}; }
- this.trigger('contentUpdateStart', {type: this._contentType, query: this._query, content});
+ this.trigger('contentUpdateStart', {type: this._contentType, query: this._query});
}
_triggerContentUpdateEntry(dictionaryEntry, element, index) {