Fixed the zoom, previous, and next links on the Gantt chart.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4074 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis committed 2010-09-10 03:09:18 +00:00
1 parent abf3ee4999
commit 5e1c295230
3 files changed
+11 -7

No files matched your search

+7 -3
View File
@@ -68,17 +68,21 @@ module Redmine
@date_from = Date.civil(@year_from, @month_from, 1)
@date_to = (@date_from >> @months) - 1
end
def common_params
{ :controller => 'gantts', :action => 'show', :project_id => @project }
end
def params
{ :zoom => zoom, :year => year_from, :month => month_from, :months => months }
common_params.merge({ :zoom => zoom, :year => year_from, :month => month_from, :months => months })
end
def params_previous
{ :year => (date_from << months).year, :month => (date_from << months).month, :zoom => zoom, :months => months }
common_params.merge({:year => (date_from << months).year, :month => (date_from << months).month, :zoom => zoom, :months => months })
end
def params_next
{ :year => (date_from >> months).year, :month => (date_from >> months).month, :zoom => zoom, :months => months }
common_params.merge({:year => (date_from >> months).year, :month => (date_from >> months).month, :zoom => zoom, :months => months })
end
### Extracted from the HTML view/helpers