From 9b9985bd4ba810d5a4e985100c68c544df9bccaf Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 7 May 2016 13:43:32 -0700 Subject: Improvements --- ext/bg/js/templates.js | 8 ++++---- ext/bg/js/yomichan.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/bg') diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index d0749d7b..1ed644a1 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -23,13 +23,13 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia },"2":function(container,depth0,helpers,partials,data,blockParams,depths) { var helper, alias1=container.lambda, alias2=container.escapeExpression; - return " \n \n"; + + "/img/add_kanji.png\">\n \n"; },"4":function(container,depth0,helpers,partials,data) { var stack1; @@ -97,13 +97,13 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial },"2":function(container,depth0,helpers,partials,data,blockParams,depths) { var helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : {}, alias4=helpers.helperMissing, alias5="function"; - return "
\n \n \n \n this.ankiInvoke('canAddNotes', definitions, 'notes', callback), + canAddNotes: ({definitions, modes}) => this.ankiInvoke('canAddNotes', {definitions: definitions, modes: modes}, 'notes', callback), findKanji: (text) => callback(this.translator.findKanji(text)), findTerm: (text) => callback(this.translator.findTerm(text)), getOptions: () => callback(this.options), -- cgit v1.2.3