aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-21 22:59:29 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-21 22:59:29 -0700
commit997947caedc109ba3e21017b38de36e21c4a7255 (patch)
treed7fe382b65db6db0d93c9bb7bf88ba07223ce0c3 /ext/bg
parentf65e9f2570636b11aa17fc82bbeeb25df6f7b550 (diff)
Cleanup
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/yomichan.js4
-rw-r--r--ext/bg/options.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index 0187f76f..1714e778 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -156,6 +156,10 @@ class Yomichan {
this.ankiInvoke('modelNames', {}, null, callback);
}
+ api_getModelFieldNames({callback}) {
+ this.ankiInvoke('modelFieldNames', {}, null, callback);
+ }
+
api_getOptions({callback}) {
callback(this.options);
}
diff --git a/ext/bg/options.html b/ext/bg/options.html
index cd0710aa..ae7e4257 100644
--- a/ext/bg/options.html
+++ b/ext/bg/options.html
@@ -100,7 +100,7 @@
<th>Value</th>
</tr>
</thead>
- <tbody id="ankiVocabFields">
+ <tbody class="ankiFields">
</tbody>
</table>
</div>
@@ -126,7 +126,7 @@
<th>Value</th>
</tr>
</thead>
- <tbody id="ankiKanjiFields">
+ <tbody class="ankiFields">
</tbody>
</table>
</div>