BigW Consortium Gitlab

_init_auto_complete.html.haml 352 Bytes
Newer Older
1
- project = @target_project || @project
2
- noteable_class = @noteable.class if @noteable.present?
3

4 5 6 7
: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();