@@ -917,7 +917,7 module ApplicationHelper | |||
|
917 | 917 | def javascript_heads |
|
918 | 918 | tags = javascript_include_tag(:defaults) |
|
919 | 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 | 921 | end |
|
922 | 922 | tags |
|
923 | 923 | end |
General Comments 0
You need to be logged in to leave comments.
Login now