summaryrefslogtreecommitdiffstats
path: root/app/views/versions
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-06 09:08:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-06 09:08:17 +0000
commit979892a109bd298cec45258bc4b2b91c8fe676cb (patch)
tree8cd489cc3129cd636b0361796747a80889a22b0b /app/views/versions
parent776d5ce554cdf0229c0a90fae0321e3506a5d849 (diff)
downloadredmine-979892a109bd298cec45258bc4b2b91c8fe676cb.tar.gz
redmine-979892a109bd298cec45258bc4b2b91c8fe676cb.zip
calendar javascripts and stylesheets removed from base layout. they're now only added to html header when needed.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@151 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r--app/views/versions/_form.rhtml9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/versions/_form.rhtml b/app/views/versions/_form.rhtml
index 3d0eb0a2d..3d6c9c208 100644
--- a/app/views/versions/_form.rhtml
+++ b/app/views/versions/_form.rhtml
@@ -6,4 +6,11 @@
<p><%= f.text_field :description, :size => 60 %></p>
<p><%= f.text_field :effective_date, :size => 10, :required => true %><%= calendar_for('version_effective_date') %></p>
<!--[eoform:version]-->
-</div> \ No newline at end of file
+</div>
+
+<% content_for :header_tags do %>
+<%= javascript_include_tag 'calendar/calendar' %>
+<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
+<%= javascript_include_tag 'calendar/calendar-setup' %>
+<%= stylesheet_link_tag 'calendar' %>
+<% end %> \ No newline at end of file