define alt-tag in help icons

pull/6827/head
Philipp Tessenow 14 years ago
parent 70248c0317
commit 8c62d9e0f6
  1. 2
      lib/widget/help.rb

@ -11,7 +11,7 @@ class Widget::Help < Widget::Base
options.merge!(yield) if block_given?
sai = options[:show_at_id] ? ", show_at_id: '#{options[:show_at_id]}'" : ""
icon = tag :img, :src => image_path('icon_info_red.gif'), :id => "target:#{@subject}"
icon = tag :img, :src => image_path('icon_info_red.gif'), :id => "target:#{@subject}", :alt => ''
tip = content_tag_string :span, l(@subject), tip_config(options[:tooltip]), false
script = content_tag :script,
"new Tooltip('target:#{@subject}', 'tip:#{@subject}', {className: 'tooltip'#{sai}});",

Loading…
Cancel
Save