2018-04-26 15:53:13 -04:00
|
|
|
- object = @target_project || @project || @group
|
2022-01-10 13:14:07 -05:00
|
|
|
- noteable_type = @noteable_type || @noteable&.class
|
2016-01-11 05:06:00 -05:00
|
|
|
|
2018-04-26 15:53:13 -04:00
|
|
|
- datasources = autocomplete_data_sources(object, noteable_type)
|
|
|
|
|
|
|
|
- if object
|
2020-11-26 13:09:18 -05:00
|
|
|
= javascript_tag do
|
2019-08-06 02:14:32 -04:00
|
|
|
:plain
|
|
|
|
gl = window.gl || {};
|
|
|
|
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
|
|
|
|
gl.GfmAutoComplete.dataSources = #{datasources.to_json};
|