aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-26 20:22:52 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-26 20:22:52 -0800
commit34ea9979abf1474eaaa581c2c32406c255c5f61c (patch)
treef81b3bd0a6190d66dba492e07d9be51ae2ac11ed /ext
parentda33d00e45ee3a028886fe90fca329282731aaa5 (diff)
wip
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/templates.js2
-rw-r--r--ext/bg/js/util.js5
-rw-r--r--ext/bg/js/yomichan.js3
3 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js
index 416f118e..4ef66de8 100644
--- a/ext/bg/js/templates.js
+++ b/ext/bg/js/templates.js
@@ -145,7 +145,7 @@ templates['fields.html'] = template({"1":function(container,depth0,helpers,parti
var stack1;
return "<div style=\"text-align: left;\">\n"
- + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.grouped : depth0),{"name":"if","hash":{},"fn":container.program(36, data, 0),"inverse":container.program(42, data, 0),"data":data})) != null ? stack1 : "")
+ + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.group : depth0),{"name":"if","hash":{},"fn":container.program(36, data, 0),"inverse":container.program(42, data, 0),"data":data})) != null ? stack1 : "")
+ "</div>\n";
},"36":function(container,depth0,helpers,partials,data) {
var stack1;
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 253fcd0f..108c88e7 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -201,7 +201,7 @@ function sortTags(tags) {
});
}
-function formatField(field, definition, mode, html) {
+function formatField(field, definition, mode, options) {
const markers = [
'audio',
'character',
@@ -221,7 +221,8 @@ function formatField(field, definition, mode, html) {
const data = {
marker,
definition,
- html,
+ group: options.general.groupResults,
+ html: options.anki.htmlCards,
modeTermKanji: mode === 'term_kanji',
modeTermKana: mode === 'term_kana',
modeKanji: mode === 'kanji'
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index 89608a5b..720c450a 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -146,11 +146,10 @@ class Yomichan {
fields[name],
definition,
mode,
- this.options.anki.htmlCards
+ this.options
);
}
- // console.log(note);
return note;
}