This commit is contained in:
Alex Yatskov 2017-01-26 20:22:52 -08:00
parent da33d00e45
commit 34ea9979ab
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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'

View File

@ -146,11 +146,10 @@ class Yomichan {
fields[name],
definition,
mode,
this.options.anki.htmlCards
this.options
);
}
// console.log(note);
return note;
}

View File

@ -33,7 +33,7 @@
{{#*inline "glossary"}}
<div style="text-align: left;">
{{#if grouped}}
{{#if group}}
{{#if definitions.[1]}}
<ol>
{{#each definitions}}