aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-07 08:21:49 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-07 08:21:49 -0800
commit8c22f53f3e770840316b3fd2e840ffe06771a8d4 (patch)
treed1a120beb78ba7cc29a6dfa99c80d250d74095be /ext/bg/js/options-form.js
parented2091ae1b4976b90d29f5e84efdcd41227f66b0 (diff)
Dexie fixes
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 ea318092..2f2fe6fd 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -181,11 +181,11 @@ function populateDictionaries(opts) {
container.append($(html));
});
- const dictDelete = $('.dict-delete');
- dictDelete.click(() => {
- const dict = dictDelete.closest('.dict');
+ $('.dict-delete').click(e => {
+ const dict = $(e.target).closest('.dict');
const title = dict.data('title');
- yomichan().translator.dictionary.deleteDictionary(title).then(() => dict.slideUp());
+ yomichan().translator.dictionary.deleteDictionary(title);
+ dict.slideUp();
});
container.find('.dict input').change(onOptionsChanged);