2018-04-26 15:53:13 -04:00
|
|
|
- object = @target_project || @project || @group
|
2016-08-12 21:19:16 -04:00
|
|
|
- noteable_type = @noteable.class if @noteable.present?
|
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
|
2019-08-06 02:14:32 -04:00
|
|
|
= javascript_tag nonce: true do
|
|
|
|
:plain
|
|
|
|
gl = window.gl || {};
|
|
|
|
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
|
|
|
|
gl.GfmAutoComplete.dataSources = #{datasources.to_json};
|