summaryrefslogtreecommitdiff
path: root/ext/js/display/display-generator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-01 11:53:56 -0400
committerGitHub <noreply@github.com>2021-05-01 11:53:56 -0400
commitc433819c1bb0ec5d3156300deada47faee6aee99 (patch)
tree35b65a477bbd58d898283358ea7067ed05039139 /ext/js/display/display-generator.js
parent8ee470caa0f96326d637f0ee6769546f3ef1cfc2 (diff)
Update search tags to always be displayed in a consistent manner (#1645)
Diffstat (limited to 'ext/js/display/display-generator.js')
-rw-r--r--ext/js/display/display-generator.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js
index ff2292bc..eb9c122d 100644
--- a/ext/js/display/display-generator.js
+++ b/ext/js/display/display-generator.js
@@ -238,14 +238,9 @@ class DisplayGenerator {
_createTermHeadword(headword, headwordIndex, pronunciations) {
const {term, reading, tags} = headword;
- const searchQueries = [];
- if (term) { searchQueries.push(term); }
- if (reading) { searchQueries.push(reading); }
-
const node = this._templates.instantiate('headword');
const termContainer = node.querySelector('.headword-term');
- const tagContainer = node.querySelector('.headword-tag-list');
node.dataset.readingIsSame = `${reading === term}`;
node.dataset.frequency = DictionaryDataUtil.getTermFrequency(tags);
@@ -262,7 +257,6 @@ class DisplayGenerator {
this._setTextContent(node.querySelector('.headword-reading'), reading);
this._appendFurigana(termContainer, term, reading, this._appendKanjiLinks.bind(this));
- this._appendMultiple(tagContainer, this._createSearchTag.bind(this), searchQueries);
return node;
}