2018-04-26 19:53:13 +00:00
|
|
|
- object = @target_project || @project || @group
|
2016-08-13 01:19:16 +00:00
|
|
|
- noteable_type = @noteable.class if @noteable.present?
|
2016-01-11 10:06:00 +00:00
|
|
|
|
2018-04-26 19:53:13 +00:00
|
|
|
- datasources = autocomplete_data_sources(object, noteable_type)
|
|
|
|
|
|
|
|
- if object
|
2017-08-01 08:50:59 +00:00
|
|
|
-# haml-lint:disable InlineJavaScript
|
2016-10-16 12:03:44 +00:00
|
|
|
:javascript
|
2017-08-03 20:31:53 +00:00
|
|
|
gl = window.gl || {};
|
2017-05-16 18:42:06 +00:00
|
|
|
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
|
2018-04-26 19:53:13 +00:00
|
|
|
gl.GfmAutoComplete.dataSources = #{datasources.to_json};
|