Commit b00769f6 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

git-svn-id: http://redmine.rubyforge.org/svn/trunk@30 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6e367354
...@@ -123,7 +123,7 @@ module ApplicationHelper ...@@ -123,7 +123,7 @@ module ApplicationHelper
end end
def calendar_for(field_id) def calendar_for(field_id)
image_tag("calendar.gif", {:id => "#{field_id}_trigger",:class => "calendar-trigger"}) + image_tag("calendar", {:id => "#{field_id}_trigger",:class => "calendar-trigger"}) +
javascript_tag("Calendar.setup({inputField : '#{field_id}', ifFormat : '%Y-%m-%d', button : '#{field_id}_trigger' });") javascript_tag("Calendar.setup({inputField : '#{field_id}', ifFormat : '%Y-%m-%d', button : '#{field_id}_trigger' });")
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment