gitlab-org--gitlab-foss/app/views/layouts/_init_auto_complete.html.haml
Dmitriy Zaporozhets 32e18169e8
Add support for relative url to GitLab.GfmAutoComplete.Emoji.assetBase
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-12 18:30:32 +02:00

4 lines
238 B
Text

:javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_project_path(@project)}"
GitLab.GfmAutoComplete.Emoji.assetBase = "#{Gitlab.config.gitlab.relative_url_root + '/assets/emoji'}"
GitLab.GfmAutoComplete.setup();