Use consistent event handler notation

This commit is contained in:
toasted-nutbread 2019-11-26 15:44:29 -05:00
parent 7f9a73135d
commit d71bd056e8
2 changed files with 6 additions and 6 deletions

View File

@ -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));

View File

@ -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 = (() => {