Refactor comment history and fix content edit (#33018)
And fix a regression bug for comment content editing. Now 11 "import jquery" files left
This commit is contained in:
parent
e69da2cd07
commit
3d3ece36d2
4 changed files with 43 additions and 35 deletions
|
@ -30,6 +30,9 @@ async function tryOnEditContent(e) {
|
|||
|
||||
const saveAndRefresh = async (e) => {
|
||||
e.preventDefault();
|
||||
// we are already in a form, do not bubble up to the document otherwise there will be other "form submit handlers"
|
||||
// at the moment, the form submit event conflicts with initRepoDiffConversationForm (global '.conversation-holder form' event handler)
|
||||
e.stopPropagation();
|
||||
renderContent.classList.add('is-loading');
|
||||
showElem(renderContent);
|
||||
hideElem(editContentZone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue