]> source.dussan.org Git - redmine.git/commitdiff
Generate tag once per request.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 14 Apr 2015 16:59:04 +0000 (16:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 14 Apr 2015 16:59:04 +0000 (16:59 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14178 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 7fdb49c07ab8e0c64099ba8824f492a3b3dc2431..3f607b8cf2235a27f33f6fe99c3b9f807208a3b9 100644 (file)
@@ -1117,7 +1117,7 @@ module ApplicationHelper
 
   def checked_image(checked=true)
     if checked
-      image_tag 'toggle_check.png'
+      @checked_image_tag ||= image_tag('toggle_check.png')
     end
   end