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:
commit
7692aeecfa
1 changed files with 2 additions and 2 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue