diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-10-16 04:01:40 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-10-19 03:41:10 -0700 |
commit | 57c134c39a106a3e9b9de776c06fe971b83a8224 (patch) | |
tree | 98c495c58da52068b323ecf10380b2bdc0e52bc7 /app/views/layouts/_init_auto_complete.html.haml | |
parent | ec1bccb26173640387124567e9ef748ae220ff37 (diff) | |
download | gitlab-ce-57c134c39a106a3e9b9de776c06fe971b83a8224.tar.gz |
cleanup coffeescript code for mentions auto-complete
Diffstat (limited to 'app/views/layouts/_init_auto_complete.html.haml')
-rw-r--r-- | app/views/layouts/_init_auto_complete.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/layouts/_init_auto_complete.html.haml b/app/views/layouts/_init_auto_complete.html.haml index 87a74655128..9eadc18cbf8 100644 --- a/app/views/layouts/_init_auto_complete.html.haml +++ b/app/views/layouts/_init_auto_complete.html.haml @@ -1,11 +1,11 @@ :javascript $(function() { - autocompleteMembersUrl = "#{ "/api/v2/projects/#{@project.code}/members" if @project }"; - autocompleteMembersParams.private_token = "#{current_user.authentication_token}"; + autocompleteMembers.url = "#{ "/api/v2/projects/#{@project.code}/members" if @project }"; + autocompleteMembers.params.private_token = "#{current_user.private_token}"; - autocompleteEmojiData = #{raw emoji_autocomplete_source}; + autocompleteEmoji.data = #{raw emoji_autocomplete_source}; // convert the list so that the items have the right format for completion - autocompleteEmojiData = $.map(autocompleteEmojiData, function(value) { + autocompleteEmoji.data = $.map(autocompleteEmoji.data, function(value) { return { name: value, insert: value+':', |