From 8c31b786303a0f6345dc95b243a9d6e127fc29ab Mon Sep 17 00:00:00 2001 From: Mai-Lapyst Date: Fri, 5 Apr 2024 00:39:30 +0200 Subject: [PATCH] Fixes regression of issue edit not working --- web_src/js/features/repo-legacy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'));