diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-05-04 19:31:06 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-05-04 19:31:06 -0700 |
commit | 320d9bca0e2f4e4a66e58672898722dfeb28f7d4 (patch) | |
tree | efa32295f2d6411d4d8af68f9c19a7d7cad06437 /util | |
parent | 22ff1f869537b4ffb3c12ed9d1f101629e06e35a (diff) |
Adding indices
Diffstat (limited to 'util')
-rw-r--r-- | util/tmpl/kanji.html | 2 | ||||
-rw-r--r-- | util/tmpl/term.html | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html index 55cf6b2e..4851826f 100644 --- a/util/tmpl/kanji.html +++ b/util/tmpl/kanji.html @@ -3,7 +3,7 @@ {{#if enableAnkiConnect}} <div class="action-bar"> {{#with ../addable}} - <a href="#" title="Add Kanji" class="{{#unless kanji}}disabled{{/unless}}"><img src="{{../../root}}/add_kanji.png"></a> + <a href="#" title="Add Kanji" class="action-link {{#unless kanji}}disabled{{/unless}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../../root}}/add_kanji.png"></a> {{/with}} </div> {{/if}} diff --git a/util/tmpl/term.html b/util/tmpl/term.html index 7d0d75d1..465a9388 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -1,12 +1,10 @@ <div class="term-definition"> - {{id}} - {{#with options}} {{#if enableAnkiConnect}} <div class="action-bar"> {{#with ../addable}} - <a href="#" title="Add as expression" class="{{#unless vocabExp}}disabled{{/unless}}"><img src="{{../../root}}/img/add_expression.png"></a> - <a href="#" title="Add as reading" class="{{#unless vocabExp}}disabled{{/unless}}"><img src="{{../../root}}/img/add_reading.png"></a> + <a href="#" title="Add as expression" class="action-link {{#unless vocabExp}}disabled{{/unless}}" data-mode="vocabExp" data-index="{{@index}}"><img src="{{../../root}}/img/add_expression.png"></a> + <a href="#" title="Add as reading" class="action-link {{#unless vocabExp}}disabled{{/unless}}" data-mode="vocabReading" data-index="{{@index}}"><img src="{{../../root}}/img/add_reading.png"></a> {{/with}} </div> {{/if}} |