blob: 240e03a5d53acb9929001ddf88030e3e910126d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
- object = @target_project || @project || @group
- noteable_type = @noteable.class if @noteable.present?
- datasources = autocomplete_data_sources(object, noteable_type)
- if object
-# haml-lint:disable InlineJavaScript
:javascript
gl = window.gl || {};
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
gl.GfmAutoComplete.dataSources = #{datasources.to_json};
|