2018-10-15 14:42:47 +05:30
|
|
|
- object = @target_project || @project || @group
|
2022-03-02 08:16:31 +05:30
|
|
|
- noteable_type = @noteable_type || @noteable&.class
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
- datasources = autocomplete_data_sources(object, noteable_type)
|
|
|
|
|
|
|
|
- if object
|
2021-02-22 17:27:13 +05:30
|
|
|
= javascript_tag do
|
2019-10-12 21:52:04 +05:30
|
|
|
:plain
|
|
|
|
gl = window.gl || {};
|
|
|
|
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
|
|
|
|
gl.GfmAutoComplete.dataSources = #{datasources.to_json};
|