blob: 351100f3523383a3a723f261f6ab5fe96b6fcab0 (
plain)
1
2
3
4
5
6
7
|
- 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();
|