diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 2f5514a28..f7446d64b 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -477,8 +477,8 @@ async function onEditContent(event) { e.preventDefault(); saveAndRefresh(dz); }); - editContentZone.on('ce-quick-submit', () => { - editContentZone.find('.save.button').trigger('click'); + editContentZone.addEventListener('ce-quick-submit', () => { + editContentZone.querySelector('.save.button').dispatchEvent(new Event('click')); }); } else { comboMarkdownEditor = getComboMarkdownEditor(editContentZone.querySelector('.combo-markdown-editor'));