diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-06-22 00:36:21 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-07-03 23:42:31 +0300 |
commit | c2b2f791e4dd33d1de8305aee46d5ee5750fc7e8 (patch) | |
tree | 2a4efbe21f0e0a0ff478201e930f1645e4e65ad7 /lib/banzai | |
parent | 049d4baed0f3532359feb729c5f0938d3d4518ef (diff) | |
download | gitlab-ce-c2b2f791e4dd33d1de8305aee46d5ee5750fc7e8.tar.gz |
Banzai: Add tooltip attributes to reference filter.acet-fix-tooltip-placement
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/filter/reference_filter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/banzai/filter/reference_filter.rb b/lib/banzai/filter/reference_filter.rb index 6640168bfa2..a6f8650ed3d 100644 --- a/lib/banzai/filter/reference_filter.rb +++ b/lib/banzai/filter/reference_filter.rb @@ -30,6 +30,8 @@ module Banzai attributes = attributes.reject { |_, v| v.nil? } attributes[:reference_type] ||= self.class.reference_type + attributes[:container] ||= 'body' + attributes[:placement] ||= 'bottom' attributes.delete(:original) if context[:no_original_data] attributes.map do |key, value| %Q(data-#{key.to_s.dasherize}="#{escape_once(value)}") |