aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/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
parent7f9a73135da4244e779f32179c7d19e6984bbc55 (diff)
Use consistent event handler notation
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/settings-profiles.js2
-rw-r--r--ext/bg/js/settings.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/bg/js/settings-profiles.js b/ext/bg/js/settings-profiles.js
index 357a1b9b..9532e3eb 100644
--- a/ext/bg/js/settings-profiles.js
+++ b/ext/bg/js/settings-profiles.js
@@ -36,7 +36,7 @@ async function profileOptionsSetup() {
function profileOptionsSetupEventListeners() {
$('#profile-target').change((e) => onTargetProfileChanged(e));
- $('#profile-name').change(onProfileNameChanged);
+ $('#profile-name').change((e) => onProfileNameChanged(e));
$('#profile-add').click((e) => onProfileAdd(e));
$('#profile-remove').click((e) => onProfileRemove(e));
$('#profile-remove-confirm').click((e) => onProfileRemoveConfirm(e));
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 = (() => {