summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/helpers')
-rw-r--r--lib/redmine/helpers/gantt.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 882a8b750..6b40bc844 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -346,6 +346,7 @@ module Redmine
if options[:format] == :html
data_options = {}
data_options[:collapse_expand] = "issue-#{issue.id}"
+ data_options[:number_of_rows] = number_of_rows
style = "position: absolute;top: #{options[:top]}px; font-size: 0.8em;"
content =
view.content_tag(
@@ -779,6 +780,7 @@ module Redmine
:top_increment => params[:top_increment],
:obj_id => "#{object.class}-#{object.id}".downcase,
},
+ :number_of_rows => number_of_rows,
}
end
if has_children
@@ -834,7 +836,10 @@ module Redmine
def html_task(params, coords, markers, label, object)
output = +''
data_options = {}
- data_options[:collapse_expand] = "#{object.class}-#{object.id}".downcase if object
+ if object
+ data_options[:collapse_expand] = "#{object.class}-#{object.id}".downcase
+ data_options[:number_of_rows] = number_of_rows
+ end
css = "task " +
case object
when Project