comparison app/helpers/.svn/text-base/calendars_helper.rb.svn-base @ 441:cbce1fd3b1b7 redmine-1.2

Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author Chris Cannam
date Mon, 06 Jun 2011 14:24:13 +0100
parents 40f7cfd4df19
children
comparison
equal deleted inserted replaced
245:051f544170fe 441:cbce1fd3b1b7
30 30
31 link_to_month((name + ' »'), target_year, target_month, options) 31 link_to_month((name + ' »'), target_year, target_month, options)
32 end 32 end
33 33
34 def link_to_month(link_name, year, month, options={}) 34 def link_to_month(link_name, year, month, options={})
35 project_id = options[:project].present? ? options[:project].to_param : nil 35 link_to_content_update(link_name, params.merge(:year => year, :month => month))
36
37 link_target = calendar_path(:year => year, :month => month, :project_id => project_id)
38
39 link_to_remote(link_name,
40 {:update => "content", :url => link_target, :method => :put},
41 {:href => link_target})
42
43 end 36 end
44
45 end 37 end