gantt: code layout cleanup params* method of lib/redmine/helpers/gantt.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10343 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-09-10 11:55:13 +00:00
parent d0ca8eb703
commit abcfbd9c75
1 changed files with 8 additions and 3 deletions

View File

@ -81,15 +81,20 @@ module Redmine
end
def params
common_params.merge({ :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
common_params.merge({: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
common_params.merge({: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
# Returns the number of rows that will be rendered on the Gantt chart