redmine_issues_group-always_open.patch

Disables ability to collapse/expand subtask view - Brian Wells, 2009-11-06 06:08

Download (1.58 KB)

View differences:

redmine_issues_group/lib/issues_helper_patch.rb 2009-11-05 23:33:31.000000000 -0500
31 31
    end
32 32
    def issue_outline(issue, issue_list, level, g)
33 33
      content = ""
34
      (1..level-1).each do |l|
34
      return content unless level > 1
35
      (2..level-1).each do |l|
35 36
        class_name = 'space'
36 37
        class_name = 'outline-3' if (g[l-1] <= 1)
37 38
        content += content_tag 'td', '&nbsp;', :class => class_name
......
44 45
        when 2; issue == issue_list.first && level == 1 ? "outline-5" : "outline-1"
45 46
        else "space"
46 47
      end
47
      class_name = class_name + " has-childs open" unless issue.leaf?
48
      content += content_tag 'td', '&nbsp;', :class => class_name, :onclick => issue.leaf? ? "" : "toggle_sub(" + issue.id.to_s + ");"
48
      content += content_tag 'td', '&nbsp;', :class => class_name
49 49
      content
50 50
    end
51 51
    def column_header_with_spans(column)
52
      column.name == :subject ? "<th><span class='has-childs open' onclick='toggle_all();'>&nbsp;&nbsp;&nbsp;&nbsp;</span></th>"+sort_header_tag(column.name.to_s, :caption => column.caption, :default_order => column.default_order, :colspan => 9) :
52
      column.name == :subject ? sort_header_tag(column.name.to_s, :caption => column.caption, :default_order => column.default_order, :colspan => 9) :
53 53
        column_header(column)
54 54
    end
55 55
    def column_plain_content(column_name, issue)