diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-09-21 09:21:32 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-09-21 09:21:32 -0700 |
commit | 65ce976423e241b50baa69b4d074b981d4de1f3e (patch) | |
tree | 80137c0140f07b678263abeeed7fe6f666006c6f /ext/bg/js | |
parent | 119def2bebc9adea3a29e9152c7e4747d81d54fa (diff) |
wip
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/templates.js | 4 | ||||
-rw-r--r-- | ext/bg/js/translator.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index d501e5d8..ddf9740a 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -39,7 +39,7 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia + " </dl>\n </td>\n <td class=\"glossary\">\n" + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.glossary : depth0)) != null ? stack1["1"] : stack1),{"name":"if","hash":{},"fn":container.program(14, data, 0),"inverse":container.program(17, data, 0),"data":data})) != null ? stack1 : "") + " </td>\n <td></td>\n </tr>\n <tr>\n <th colspan=\"3\">Dictionary Indices</th>\n </tr>\n <tr>\n <td colspan=\"3\">\n" - + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.stats : depth0)) != null ? stack1.indices : stack1),{"name":"if","hash":{},"fn":container.program(19, data, 0),"inverse":container.program(25, data, 0),"data":data})) != null ? stack1 : "") + + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.stats : depth0)) != null ? stack1["default"] : stack1),{"name":"if","hash":{},"fn":container.program(19, data, 0),"inverse":container.program(25, data, 0),"data":data})) != null ? stack1 : "") + " </td>\n </tr>\n </table>\n\n" + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.debug : depth0),{"name":"if","hash":{},"fn":container.program(27, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + "</div>\n"; @@ -101,7 +101,7 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia var stack1; return " <table class=\"info-output\">\n" - + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.stats : depth0)) != null ? stack1.indices : stack1),{"name":"each","hash":{},"fn":container.program(20, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.stats : depth0)) != null ? stack1["default"] : stack1),{"name":"each","hash":{},"fn":container.program(20, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + " </table>\n"; },"20":function(container,depth0,helpers,partials,data) { var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}); diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 454799a3..cc0336e7 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -178,7 +178,7 @@ class Translator { for (const name in items) { const base = name.split(':')[0]; const meta = await this.database.findTagForTitle(base, title); - const group = stats[meta.category] || []; + const group = stats[meta.category] = stats[meta.category] || []; const stat = {name, value: items[name]}; for (const prop in meta || {}) { |