Show autocomplete list when editing notes.

This commit is contained in:
Jack Weeden 2013-07-29 14:16:36 +01:00
parent b55e22e277
commit 1458dea9fe
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);