gitlab-org--gitlab-foss/app/views/layouts/_init_auto_complete.html.haml
2016-07-14 08:44:22 +01:00

7 lines
352 B
Text

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