aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/frame.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-08 22:44:13 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-08 22:44:13 -0800
commit60e23ab42c86fbc74a6e16d6fd29fcc6761bfb36 (patch)
treecfc270d272270bcada3b9799959553a967c73193 /ext/fg/js/frame.js
parent3b83f8b7fef9978b79517aeda95fa89de071ba54 (diff)
simplify templates
Diffstat (limited to 'ext/fg/js/frame.js')
-rw-r--r--ext/fg/js/frame.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js
index ad1c32e8..2cf32e3e 100644
--- a/ext/fg/js/frame.js
+++ b/ext/fg/js/frame.js
@@ -34,6 +34,7 @@ class Frame {
const sequence = ++this.sequence;
const context = {
definitions,
+ grouped: options.groupTermResults,
addable: options.ankiMethod !== 'disabled',
playback: options.enableAudioPlayback
};
@@ -65,6 +66,7 @@ class Frame {
const sequence = ++this.sequence;
const context = {
definitions,
+ grouped: options.groupTermResults,
addable: options.ankiMethod !== 'disabled',
playback: options.enableAudioPlayback
};
@@ -73,7 +75,7 @@ class Frame {
this.showSpinner(false);
window.scrollTo(0, 0);
- renderText(context, 'term-grouped-list.html').then(content => {
+ renderText(context, 'term-list.html').then(content => {
$('.content').html(content);
$('.action-add-note').click(this.onAddNote.bind(this));