summaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-06 19:14:43 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-06 19:14:43 -0800
commit3655e5a8204232fa85c35515edaa0b1b6da66e66 (patch)
tree6ab3a99519197551dee8338d6f1389faf568d813 /ext/bg/js/options-form.js
parent7fa51d682f29fbf51ed1228ca8840ff60be48e5e (diff)
Cleanup
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r--ext/bg/js/options-form.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js
index 9919031a..a37ebbaf 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -93,10 +93,10 @@ function getFormValues() {
$('.dict').each((index, element) => {
const dictionary = $(element);
- const name = dictionary.data('name');
+ const title = dictionary.data('title');
const enableTerms = dictionary.find('.dict-enable-terms').prop('checked');
const enableKanji = dictionary.find('.dict-enable-kanji').prop('checked');
- optsNew.dictionaries[name] = {enableTerms, enableKanji};
+ optsNew.dictionaries[title] = {enableTerms, enableKanji};
});
return {
@@ -168,9 +168,9 @@ function populateDictionaries(opts) {
yomichan().translator.dictionary.getInfo().then(rows => {
rows.forEach(row => {
- const dictOpts = opts.dictionaries[row.dictionary] || {enableTerms: true, enableKanji: false};
+ const dictOpts = opts.dictionaries[row.title] || {enableTerms: true, enableKanji: false};
const html = Handlebars.templates['dictionary.html']({
- name: row.dictionary,
+ title: row.title,
version: row.version,
hasTerms: row.hasTerms,
hasKanji: row.hasKanji,