gitlab-org--gitlab-foss/app/views/layouts/_init_auto_complete.html.haml

9 lines
371 B
Text
Raw Normal View History

- project = @target_project || @project
2016-08-12 21:19:16 -04:00
- noteable_type = @noteable.class if @noteable.present?
- if project
:javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_type, type_id: params[:id])}"
GitLab.GfmAutoComplete.cachedData = undefined;
GitLab.GfmAutoComplete.setup();