Commit 1458dea9fe7530b716754ddeb89f032b43b97a1f
1 parent
b55e22e2
Exists in
master
and in
4 other branches
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,10 +227,11 @@ var NoteList = { | ||
227 | // Show the attachment delete link | 227 | // Show the attachment delete link |
228 | note.find(".js-note-attachment-delete").show(); | 228 | note.find(".js-note-attachment-delete").show(); |
229 | 229 | ||
230 | + GitLab.GfmAutoComplete.setup(); | ||
231 | + | ||
230 | var form = note.find(".note-edit-form"); | 232 | var form = note.find(".note-edit-form"); |
231 | form.show(); | 233 | form.show(); |
232 | 234 | ||
233 | - | ||
234 | var textarea = form.find("textarea"); | 235 | var textarea = form.find("textarea"); |
235 | var p = $("<p></p>").text(textarea.val()); | 236 | var p = $("<p></p>").text(textarea.val()); |
236 | var hidden_div = $('<div class="note-original-content"></div>').append(p); | 237 | var hidden_div = $('<div class="note-original-content"></div>').append(p); |