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:
parent
d0ca8eb703
commit
abcfbd9c75
|
@ -81,15 +81,20 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def params
|
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
|
end
|
||||||
|
|
||||||
def params_previous
|
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
|
end
|
||||||
|
|
||||||
def params_next
|
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
|
end
|
||||||
|
|
||||||
# Returns the number of rows that will be rendered on the Gantt chart
|
# Returns the number of rows that will be rendered on the Gantt chart
|
||||||
|
|
Loading…
Reference in New Issue