diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-23 09:52:01 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-23 09:52:01 -0700 |
commit | 9c75fcbef16e68dd3898545fc5d11b1261de1a26 (patch) | |
tree | 7b5c49890ec77a11f0737153edc0f09261dac6b9 | |
parent | 80bcba4ee25b34052c920d2c8ff58f7a72b44852 (diff) | |
download | gitlab-ce-9c75fcbef16e68dd3898545fc5d11b1261de1a26.tar.gz |
auto complete team member mentions
-rw-r--r-- | app/views/notes/_common_form.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/notes/_common_form.html.haml b/app/views/notes/_common_form.html.haml index fc6e3c7ee6e..f91e921bbc7 100644 --- a/app/views/notes/_common_form.html.haml +++ b/app/views/notes/_common_form.html.haml @@ -37,3 +37,8 @@ = f.file_field :attachment, class: "input-file" %span.hint Any file less than 10 MB +:javascript + $(function(){ + var names = #{@project.users.pluck(:name)}; + $('.note-text').atWho('@', { data: names }); + }); |