gitlab-org--gitlab-foss/app/views/layouts/_init_auto_complete.html.haml

12 lines
376 B
Plaintext
Raw Normal View History

- object = @target_project || @project || @group
2016-08-13 01:19:16 +00:00
- noteable_type = @noteable.class if @noteable.present?
- datasources = autocomplete_data_sources(object, noteable_type)
- if object
2017-08-01 08:50:59 +00:00
-# haml-lint:disable InlineJavaScript
:javascript
gl = window.gl || {};
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
gl.GfmAutoComplete.dataSources = #{datasources.to_json};