aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 15:44:29 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 17:18:17 -0500
commitd71bd056e8d8e69581b3c7ca90de4c77b206babe (patch)
treef719a0ee7262b3c3747c4d559364ead9f10d8005 /ext/bg/js/settings.js
parent7f9a73135da4244e779f32179c7d19e6984bbc55 (diff)
Use consistent event handler notation
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r--ext/bg/js/settings.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index d1f9d0d1..f5c086ef 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -583,7 +583,7 @@ async function ankiFieldsPopulate(element, options) {
}
tab.find('.anki-field-value').change((e) => onFormOptionsChanged(e));
- tab.find('.marker-link').click(onAnkiMarkerClicked);
+ tab.find('.marker-link').click((e) => onAnkiMarkerClicked(e));
}
function onAnkiMarkerClicked(e) {
@@ -651,10 +651,10 @@ function ankiTemplatesInitialize() {
node.addEventListener('click', onAnkiTemplateMarkerClicked, false);
}
- $('#field-templates').on('change', onAnkiTemplatesValidateCompile);
- $('#field-template-render').on('click', onAnkiTemplateRender);
- $('#field-templates-reset').on('click', onAnkiFieldTemplatesReset);
- $('#field-templates-reset-confirm').on('click', onAnkiFieldTemplatesResetConfirm);
+ $('#field-templates').on('change', (e) => onAnkiTemplatesValidateCompile(e));
+ $('#field-template-render').on('click', (e) => onAnkiTemplateRender(e));
+ $('#field-templates-reset').on('click', (e) => onAnkiFieldTemplatesReset(e));
+ $('#field-templates-reset-confirm').on('click', (e) => onAnkiFieldTemplatesResetConfirm(e));
}
const ankiTemplatesValidateGetDefinition = (() => {