diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index ee82b5e4b..2f5514a28 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.on('ce-quick-submit', () => { + editContentZone.find('.save.button').trigger('click'); }); } else { comboMarkdownEditor = getComboMarkdownEditor(editContentZone.querySelector('.combo-markdown-editor'));