diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-21 20:23:19 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-21 20:25:49 +0100 |
commit | 3e800c3bb1b835cd17e32eedd8816bc17f6317e4 (patch) | |
tree | d1bcac057b89cf1c22c8ac6886f94598cfbf4ab2 /app/views/layouts/_init_auto_complete.html.haml | |
parent | 1cda62465f60adf5abbcde443fbb1cb1e402a407 (diff) | |
download | gitlab-ce-3e800c3bb1b835cd17e32eedd8816bc17f6317e4.tar.gz |
Refactor GFM JS naming and access
Diffstat (limited to 'app/views/layouts/_init_auto_complete.html.haml')
-rw-r--r-- | app/views/layouts/_init_auto_complete.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/layouts/_init_auto_complete.html.haml b/app/views/layouts/_init_auto_complete.html.haml index 225c378f626..502f289ec05 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() { - GitLab.AutoComplete.Members.url = "#{ "/api/v2/projects/#{@project.code}/members" if @project }"; - GitLab.AutoComplete.Members.params.private_token = "#{current_user.private_token}"; + GitLab.GfmAutoComplete.Members.url = "#{ "/api/v2/projects/#{@project.code}/members" if @project }"; + GitLab.GfmAutoComplete.Members.params.private_token = "#{current_user.private_token}"; - GitLab.AutoComplete.Emoji.data = #{raw emoji_autocomplete_source}; + GitLab.GfmAutoComplete.Emoji.data = #{raw emoji_autocomplete_source}; // convert the list so that the items have the right format for completion - GitLab.AutoComplete.Emoji.data = $.map(GitLab.AutoComplete.Emoji.data, function(value) { + GitLab.GfmAutoComplete.Emoji.data = $.map(GitLab.GfmAutoComplete.Emoji.data, function(value) { return { name: value, insert: value+':', @@ -13,5 +13,5 @@ } }); - setupGfmAutoComplete(); + GitLab.GfmAutoComplete.setup(); }); |