Commit 3531032e authored by Phil Hughes's avatar Phil Hughes

Fixed slash commands not loading

Closes #21774
parent 7ac47516
- project = @target_project || @project
- noteable_type = @noteable.class if @noteable.present?
- if noteable_type
:javascript
GitLab.GfmAutoComplete.dataLoading = false;
:javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_type, type_id: params[:id])}"
GitLab.GfmAutoComplete.cachedData = undefined;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment