diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-05-05 21:36:50 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-05-05 21:36:50 -0700 |
commit | f1e078c7d8fa09e8471e66b245afb80a1b78cc6b (patch) | |
tree | e6dd29654f7bbf3771d57b40e9d342a3b07cd823 /util | |
parent | cc33a30b5eb531651346a407040f65b9ebb8a6c8 (diff) |
Removing flicker
Diffstat (limited to 'util')
-rw-r--r-- | util/tmpl/kanji-list.html | 2 | ||||
-rw-r--r-- | util/tmpl/kanji.html | 2 | ||||
-rw-r--r-- | util/tmpl/term-list.html | 2 | ||||
-rw-r--r-- | util/tmpl/term.html | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/util/tmpl/kanji-list.html b/util/tmpl/kanji-list.html index 094441f2..b5d0b627 100644 --- a/util/tmpl/kanji-list.html +++ b/util/tmpl/kanji-list.html @@ -1,5 +1,5 @@ {{> header.html}} {{#each defs}} -{{> kanji.html root=../root options=../options}} +{{> kanji.html root=../root options=../options sequence=../sequence}} {{/each}} {{> footer.html}} diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html index 119fead6..2b195577 100644 --- a/util/tmpl/kanji.html +++ b/util/tmpl/kanji.html @@ -1,7 +1,7 @@ <div class="kanji-definition"> {{#with options}} {{#if enableAnkiConnect}} - <a href="#" title="Add Kanji" class="action-link disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/add_kanji.png"></a> + <a href="#" title="Add Kanji" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/add_kanji.png"></a> {{/if}} {{/with}} diff --git a/util/tmpl/term-list.html b/util/tmpl/term-list.html index e4944a2f..5581b679 100644 --- a/util/tmpl/term-list.html +++ b/util/tmpl/term-list.html @@ -1,5 +1,5 @@ {{> header.html}} {{#each defs}} -{{> term.html root=../root options=../options}} +{{> term.html root=../root options=../options sequence=../sequence}} {{/each}} {{> footer.html}} diff --git a/util/tmpl/term.html b/util/tmpl/term.html index da29271c..4d764f0a 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -2,8 +2,8 @@ {{#with options}} {{#if enableAnkiConnect}} <div class="action-bar"> - <a href="#" title="Add as expression" class="action-link disabled" data-mode="vocabExp" data-index="{{@index}}"><img src="{{../root}}/img/add_expression.png"></a> - <a href="#" title="Add as reading" class="action-link disabled" data-mode="vocabReading" data-index="{{@index}}"><img src="{{../root}}/img/add_reading.png"></a> + <a href="#" title="Add as expression" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="vocabExp" data-index="{{@index}}"><img src="{{../root}}/img/add_expression.png"></a> + <a href="#" title="Add as reading" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="vocabReading" data-index="{{@index}}"><img src="{{../root}}/img/add_reading.png"></a> </div> {{/if}} {{/with}} |