Merge pull request #4663 from jackbot/autocomplete_in_editable_notes

Show autocomplete list when editing notes.
This commit is contained in:
Dmitriy Zaporozhets 2013-08-04 06:36:36 -07:00
commit 263b301f66
1 changed files with 2 additions and 1 deletions

View File

@ -227,10 +227,11 @@ var NoteList = {
// Show the attachment delete link
note.find(".js-note-attachment-delete").show();
GitLab.GfmAutoComplete.setup();
var form = note.find(".note-edit-form");
form.show();
var textarea = form.find("textarea");
var p = $("<p></p>").text(textarea.val());
var hidden_div = $('<div class="note-original-content"></div>').append(p);