Merge pull request '[v7.0/forgejo] Fixes regression of issue edit not working' (#3047) from bp-v7.0/forgejo-8c31b78 into v7.0/forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3047
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
Earl Warren 2024-04-05 04:56:38 +00:00
commit af797534f8

View file

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