Commit 9c75fcbef16e68dd3898545fc5d11b1261de1a26

Authored by Nihad Abbasov
1 parent 80bcba4e

auto complete team member mentions

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
app/views/notes/_common_form.html.haml
... ... @@ -37,3 +37,8 @@
37 37 = f.file_field :attachment, class: "input-file"
38 38 %span.hint Any file less than 10 MB
39 39  
  40 +:javascript
  41 + $(function(){
  42 + var names = #{@project.users.pluck(:name)};
  43 + $('.note-text').atWho('@', { data: names });
  44 + });
... ...