auto complete team member mentions

This commit is contained in:
Nihad Abbasov 2012-09-23 09:52:01 -07:00
parent 80bcba4ee2
commit 9c75fcbef1

View file

@ -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 });
});