From 60e23ab42c86fbc74a6e16d6fd29fcc6761bfb36 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 8 Jan 2017 22:44:13 -0800 Subject: simplify templates --- ext/fg/js/frame.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/fg') 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)); -- cgit v1.2.3