aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-09 16:02:03 -0500
committerGitHub <noreply@github.com>2021-01-09 16:02:03 -0500
commit5b58a9aeef66194bc51fe25f66aebf95f673089a (patch)
treeadf2381475c6f9ad1b502e49e403a7e361184321 /ext/mixed/js/display.js
parent06d23f59d83ef89ebda89db547195ecf2a1c6ebf (diff)
Update term tags display and fix a layout issue (#1208)
* Fix layout issue with term expression display * Update display of term tags * Update tag notification to include disambiguation information
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index c36a0c1c..e4433925 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -837,18 +837,17 @@ class Display extends EventDispatcher {
}
_onTagClick(e) {
- const node = e.currentTarget;
- const {dataset: {details}} = node;
- this._showTagNotification(details);
+ this._showTagNotification(e.currentTarget);
}
- _showTagNotification(content) {
+ _showTagNotification(tagNode) {
if (this._tagNotification === null) {
const node = this._displayGenerator.createEmptyFooterNotification();
node.classList.add('click-scannable');
this._tagNotification = new DisplayNotification(this._tagNotificationContainer, node);
}
+ const content = this._displayGenerator.createTagFooterNotificationDetails(tagNode);
this._tagNotification.setContent(content);
this._tagNotification.open();
}