Commit 263b301f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #4663 from jackbot/autocomplete_in_editable_notes

Show autocomplete list when editing notes.
parents 5d4afc0f 1458dea9
...@@ -227,10 +227,11 @@ var NoteList = { ...@@ -227,10 +227,11 @@ var NoteList = {
// Show the attachment delete link // Show the attachment delete link
note.find(".js-note-attachment-delete").show(); note.find(".js-note-attachment-delete").show();
GitLab.GfmAutoComplete.setup();
var form = note.find(".note-edit-form"); var form = note.find(".note-edit-form");
form.show(); form.show();
var textarea = form.find("textarea"); var textarea = form.find("textarea");
var p = $("<p></p>").text(textarea.val()); var p = $("<p></p>").text(textarea.val());
var hidden_div = $('<div class="note-original-content"></div>').append(p); var hidden_div = $('<div class="note-original-content"></div>').append(p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment