1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

Merge pull request 'Fixes regression of issue edit not working' (#3043) from Mai-Lapyst/forgejo:fix-issue-edit-button into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3043
Reviewed-by: Otto <otto@codeberg.org>
This commit is contained in:
Earl Warren 2024-04-05 03:49:43 +00:00
commit 7692aeecfa

View file

@ -477,8 +477,8 @@ async function onEditContent(event) {
e.preventDefault(); e.preventDefault();
saveAndRefresh(dz); saveAndRefresh(dz);
}); });
editContentZone.on('ce-quick-submit', () => { editContentZone.addEventListener('ce-quick-submit', () => {
editContentZone.find('.save.button').trigger('click'); editContentZone.querySelector('.save.button').dispatchEvent(new Event('click'));
}); });
} else { } else {
comboMarkdownEditor = getComboMarkdownEditor(editContentZone.querySelector('.combo-markdown-editor')); comboMarkdownEditor = getComboMarkdownEditor(editContentZone.querySelector('.combo-markdown-editor'));