diff app/helpers/calendars_helper.rb @ 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 cbb26bc654de
line wrap: on
line diff
--- a/app/helpers/calendars_helper.rb	Thu Mar 03 11:42:28 2011 +0000
+++ b/app/helpers/calendars_helper.rb	Mon Jun 06 14:24:13 2011 +0100
@@ -32,14 +32,6 @@
   end
 
   def link_to_month(link_name, year, month, options={})
-    project_id = options[:project].present? ? options[:project].to_param : nil
-
-    link_target = calendar_path(:year => year, :month => month, :project_id => project_id)
-
-    link_to_remote(link_name,
-                   {:update => "content", :url => link_target, :method => :put},
-                   {:href => link_target})
-
+    link_to_content_update(link_name, params.merge(:year => year, :month => month))
   end
-  
 end