Adds an id to the flash message divs (#9034).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9578 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-04-29 08:25:50 +00:00
parent 99cfca6f83
commit 253b02bd22
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ module ApplicationHelper
def render_flash_messages def render_flash_messages
s = '' s = ''
flash.each do |k,v| flash.each do |k,v|
s << (content_tag('div', v.html_safe, :class => "flash #{k}")) s << content_tag('div', v.html_safe, :class => "flash #{k}", :id => "flash_#{k}")
end end
s.html_safe s.html_safe
end end