From 253b02bd224e9c1fed6538272697f3ce393c7e56 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 29 Apr 2012 08:25:50 +0000 Subject: [PATCH] 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 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index bf68d8dbd..d40ae4dc4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -220,7 +220,7 @@ module ApplicationHelper def render_flash_messages s = '' 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 s.html_safe end -- 2.39.5