##// END OF EJS Templates
Rails3: use String#html_safe for javascript_heads() at ApplicationHelper....
Toshi MARUYAMA -
r6374:40a1dbc8d51f
parent child
Show More
@@ -917,7 +917,7 module ApplicationHelper
917 def javascript_heads
917 def javascript_heads
918 tags = javascript_include_tag(:defaults)
918 tags = javascript_include_tag(:defaults)
919 unless User.current.pref.warn_on_leaving_unsaved == '0'
919 unless User.current.pref.warn_on_leaving_unsaved == '0'
920 tags << "\n" + javascript_tag("Event.observe(window, 'load', function(){ new WarnLeavingUnsaved('#{escape_javascript( l(:text_warn_on_leaving_unsaved) )}'); });")
920 tags << "\n".html_safe + javascript_tag("Event.observe(window, 'load', function(){ new WarnLeavingUnsaved('#{escape_javascript( l(:text_warn_on_leaving_unsaved) )}'); });")
921 end
921 end
922 tags
922 tags
923 end
923 end
General Comments 0
You need to be logged in to leave comments. Login now