From 42b6f8365ad42613e29d546c1bfe4bc1c682f12c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 10 Dec 2012 20:19:26 +0000 Subject: [PATCH] Moved javascript include tag to head. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10978 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/attachments/_form.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb index 092f68244..ca7558a70 100644 --- a/app/views/attachments/_form.html.erb +++ b/app/views/attachments/_form.html.erb @@ -25,4 +25,6 @@ (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>) -<%= javascript_include_tag 'attachments' %> +<% content_for :header_tags do %> + <%= javascript_include_tag 'attachments' %> +<% end %>