blob: 46d84d9f8837ff79efcdf2fd3ccde1504682815f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
- object = @target_project || @project || @group
- noteable_type = @noteable_type || @noteable&.class
- datasources = autocomplete_data_sources(object, noteable_type)
- if object
= javascript_tag do
:plain
gl = window.gl || {};
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
gl.GfmAutoComplete.dataSources = #{datasources.to_json};
|