debian-mirror-gitlab/app/views/layouts/_init_auto_complete.html.haml
2016-01-14 18:37:52 +05:30

6 lines
268 B
Text

- project = @target_project || @project
- if @noteable
:javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: @noteable.class, type_id: params[:id])}"
GitLab.GfmAutoComplete.setup();