0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00

Fixes regression of issue edit not working

This commit is contained in:
Mai-Lapyst 2024-04-05 00:39:30 +02:00
parent 9c82789664
commit 8c31b78630
No known key found for this signature in database
GPG key ID: F88D929C09E239F8

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