OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b55e22e
)
Show autocomplete list when editing notes.
author
Jack Weeden
<jack@ajack.org>
Mon, 29 Jul 2013 13:16:36 +0000
(14:16 +0100)
committer
Jack Weeden
<jack@ajack.org>
Mon, 29 Jul 2013 13:16:36 +0000
(14:16 +0100)
app/assets/javascripts/notes.js
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/notes.js
b/app/assets/javascripts/notes.js
index
5e1e4dc
..
5225623
100644
(file)
--- a/
app/assets/javascripts/notes.js
+++ b/
app/assets/javascripts/notes.js
@@
-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);