diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-25 17:24:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-25 17:24:32 +0000 |
commit | e6b1f78dc223e7d1a4892bd336949c6fcd479cf8 (patch) | |
tree | eb556df44ebe74f8d54c1a917a692ee9e2fc2686 /app/helpers | |
parent | 51b654fdda849ae6286d6dbc7d5cff7cc7692f44 (diff) | |
download | redmine-e6b1f78dc223e7d1a4892bd336949c6fcd479cf8.tar.gz redmine-e6b1f78dc223e7d1a4892bd336949c6fcd479cf8.zip |
Use jquery-rails instead of vanilla javascript ujs (#26518).
git-svn-id: http://svn.redmine.org/redmine/trunk@16884 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a2d1fb73c..16aea97be 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1423,7 +1423,7 @@ module ApplicationHelper # Returns the javascript tags that are included in the html layout head def javascript_heads - tags = javascript_include_tag('jquery-1.11.1-ui-1.11.0-ujs-5.1.2', 'application', 'responsive') + tags = javascript_include_tag('jquery-1.11.1-ui-1.11.0-ujs-4.3.1', 'application', 'responsive') 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 |