569f5701ee
Previously this would result in autocomplete data being loaded for every page (e.g. the page showing all Git branches of a project).
6 lines
268 B
Text
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();
|