From a9a694358f046fca54ca8a83e1fb831e69a88a88 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 18 Jul 2016 08:41:46 -0700 Subject: [PATCH] Fixing Kanji behavior, bumping version --- ext/bg/js/templates.js | 24 +++++++++++++----------- ext/manifest.json | 2 +- tmpl/kanji.html | 9 ++++----- tmpl/term.html | 4 ++-- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index 079389f2..ef26ab81 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -21,17 +21,19 @@ templates['header.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(c templates['kanji.html'] = template({"1":function(container,depth0,helpers,partials,data,blockParams,depths) { var stack1; - return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.enableAnkiConnect : depth0),{"name":"if","hash":{},"fn":container.program(2, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : ""); + return "
\n" + + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.enableAnkiConnect : depth0),{"name":"if","hash":{},"fn":container.program(2, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") + + "
\n"; },"2":function(container,depth0,helpers,partials,data,blockParams,depths) { - var helper, alias1=container.lambda, alias2=container.escapeExpression; + var helper, alias1=container.escapeExpression; - return "
\n \n
\n"; + + alias1(container.lambda((depths[1] != null ? depths[1].root : depths[1]), depth0)) + + "/img/add_kanji.png\">\n"; },"4":function(container,depth0,helpers,partials,data) { var stack1; @@ -72,7 +74,7 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.kunyomi : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") + "\n" + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.onyomi : depth0),{"name":"if","hash":{},"fn":container.program(10, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") - + " \n \n\n\n"; + + " \n \n\n"; },"useData":true,"useDepths":true}); templates['kanji-link.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { var helper; @@ -112,11 +114,11 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial },"4":function(container,depth0,helpers,partials,data,blockParams,depths) { var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; - return " \n \n {{#with options}} - {{#if enableAnkiConnect}} -
- +
+ {{#if enableAnkiConnect}} + + {{/if}}
- {{/if}} {{/with}}
{{character}}
@@ -40,4 +40,3 @@
- diff --git a/tmpl/term.html b/tmpl/term.html index 1bb79375..620b5ace 100644 --- a/tmpl/term.html +++ b/tmpl/term.html @@ -5,8 +5,8 @@ {{/if}} {{#if enableAnkiConnect}} - - + + {{/if}} {{/with}}