|
|
|
@ -3995,7 +3995,7 @@ module ApplicationHelper
|
|
|
|
|
|
|
|
|
|
# Returns the javascript tags that are included in the html layout head
|
|
|
|
|
def javascript_heads
|
|
|
|
|
tags = javascript_include_tag('jquery-1.8.3-ui-1.9.2-ujs-2.0.3', 'jquery.colorbox-min', 'baiduTemplate')
|
|
|
|
|
tags = javascript_include_tag('jquery-1.8.3-ui-1.9.2-ujs-2.0.3', 'application','jquery.colorbox-min', 'baiduTemplate')
|
|
|
|
|
unless User.current.pref.warn_on_leaving_unsaved == '0'
|
|
|
|
|
tags << "\n".html_safe + javascript_tag("$(window).load(function(){ warnLeavingUnsaved('#{escape_javascript l(:text_warn_on_leaving_unsaved)}'); });")
|
|
|
|
|
end
|
|
|
|
|