Commit fcc26970ef974e765d309f45c7e462fc85d202b0

Authored by Daniela Feitosa
Committed by Antonio Terceiro
1 parent 7d222795

Added 'title' attribute on button_to_remote_without_text

(ActionItem1454)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -241,7 +241,7 @@ module ApplicationHelper @@ -241,7 +241,7 @@ module ApplicationHelper
241 def button_to_remote_without_text(type, label, options, html_options = {}) 241 def button_to_remote_without_text(type, label, options, html_options = {})
242 html_options[:class] = "" unless html_options[:class] 242 html_options[:class] = "" unless html_options[:class]
243 html_options[:class] << " button icon-#{type}" 243 html_options[:class] << " button icon-#{type}"
244 - link_to_remote(content_tag('span', label), options, html_options) 244 + link_to_remote(content_tag('span', label), options, html_options.merge(:title => label))
245 end 245 end
246 246
247 def icon(icon_name, html_options = {}) 247 def icon(icon_name, html_options = {})