summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = (() => {