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
|
2017-08-01 04:50:59 -04:00
|
|
|
-# haml-lint:disable InlineJavaScript
|
2016-10-16 08:03:44 -04:00
|
|
|
:javascript
|
2017-08-03 16:31:53 -04:00
|
|
|
gl = window.gl || {};
|
2017-05-16 14:42:06 -04:00
|
|
|
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
|
2018-04-26 15:53:13 -04:00
|
|
|
gl.GfmAutoComplete.dataSources = #{datasources.to_json};
|