debian-mirror-gitlab/app/views/layouts/_init_auto_complete.html.haml

12 lines
361 B
Text
Raw Normal View History

2018-10-15 14:42:47 +05:30
- object = @target_project || @project || @group
2016-09-13 17:45:13 +05:30
- noteable_type = @noteable.class if @noteable.present?
2018-10-15 14:42:47 +05:30
- datasources = autocomplete_data_sources(object, noteable_type)
- if object
2021-02-22 17:27:13 +05:30
= javascript_tag do
2019-10-12 21:52:04 +05:30
:plain
gl = window.gl || {};
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
gl.GfmAutoComplete.dataSources = #{datasources.to_json};