Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7dac314f
Commit
7dac314f
authored
Aug 24, 2021
by
Samantha Ming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix disappearing badge in commit image thread edit
Changelog: fixed
parent
f567e0d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app/assets/javascripts/deprecated_notes.js
app/assets/javascripts/deprecated_notes.js
+4
-0
No files found.
app/assets/javascripts/deprecated_notes.js
View file @
7dac314f
...
...
@@ -670,6 +670,10 @@ export default class Notes {
updateNote
(
noteEntity
,
$targetNote
)
{
// Convert returned HTML to a jQuery object so we can modify it further
const
$noteEntityEl
=
$
(
noteEntity
.
html
);
const
$noteAvatar
=
$noteEntityEl
.
find
(
'
.image-diff-avatar-link
'
);
const
$targetNoteBadge
=
$targetNote
.
find
(
'
.badge
'
);
$noteAvatar
.
append
(
$targetNoteBadge
);
this
.
revertNoteEditForm
(
$targetNote
);
$noteEntityEl
.
renderGFM
();
// Find the note's `li` element by ID and replace it with the updated HTML
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment