WIP
This commit is contained in:
parent
fab7a03b6c
commit
d770030688
@ -69,9 +69,9 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia
|
|||||||
},"11":function(container,depth0,helpers,partials,data) {
|
},"11":function(container,depth0,helpers,partials,data) {
|
||||||
var stack1;
|
var stack1;
|
||||||
|
|
||||||
return " <p>\n "
|
return " <p>"
|
||||||
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.glossary : depth0)) != null ? stack1["0"] : stack1), depth0))
|
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.glossary : depth0)) != null ? stack1["0"] : stack1), depth0))
|
||||||
+ "\n </p>\n";
|
+ "</p>\n";
|
||||||
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||||
var stack1, helper, alias1=depth0 != null ? depth0 : {};
|
var stack1, helper, alias1=depth0 != null ? depth0 : {};
|
||||||
|
|
||||||
|
@ -160,6 +160,10 @@ class Driver {
|
|||||||
|
|
||||||
this.popup.showNextTo(textSource.getRect());
|
this.popup.showNextTo(textSource.getRect());
|
||||||
this.popup.showTermDefs(definitions, this.options);
|
this.popup.showTermDefs(definitions, this.options);
|
||||||
|
this.lastTextSource = textSource;
|
||||||
|
if (this.options.selectMatchedText) {
|
||||||
|
textSource.select();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -180,6 +184,10 @@ class Driver {
|
|||||||
|
|
||||||
this.popup.showNextTo(textSource.getRect());
|
this.popup.showNextTo(textSource.getRect());
|
||||||
this.popup.showKanjiDefs(definitions, this.options);
|
this.popup.showKanjiDefs(definitions, this.options);
|
||||||
|
this.lastTextSource = textSource;
|
||||||
|
if (this.options.selectMatchedText) {
|
||||||
|
textSource.select();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -42,9 +42,7 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
</ol>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>
|
<p>{{glossary.[0]}}</p>
|
||||||
{{glossary.[0]}}
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user