Commit 263b301f66720c1b7b9e2d6fce481e5e410761f4
Exists in
master
and in
4 other branches
Merge pull request #4663 from jackbot/autocomplete_in_editable_notes
Show autocomplete list when editing notes.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/assets/javascripts/notes.js
| ... | ... | @@ -227,10 +227,11 @@ var NoteList = { |
| 227 | 227 | // Show the attachment delete link |
| 228 | 228 | note.find(".js-note-attachment-delete").show(); |
| 229 | 229 | |
| 230 | + GitLab.GfmAutoComplete.setup(); | |
| 231 | + | |
| 230 | 232 | var form = note.find(".note-edit-form"); |
| 231 | 233 | form.show(); |
| 232 | 234 | |
| 233 | - | |
| 234 | 235 | var textarea = form.find("textarea"); |
| 235 | 236 | var p = $("<p></p>").text(textarea.val()); |
| 236 | 237 | var hidden_div = $('<div class="note-original-content"></div>').append(p); | ... | ... |