@@ -749,11 +749,7 module Redmine | |||
|
749 | 749 | :class => "#{options[:css]} task_todo", |
|
750 | 750 | :id => html_id} |
|
751 | 751 | if options[:issue] |
|
752 | rels_hash = {} | |
|
753 | issue_relations(options[:issue]).each do |k, v| | |
|
754 | rels_hash[k] = v.join(',') | |
|
755 | end | |
|
756 | content_opt[:data] = {"rels" => rels_hash} | |
|
752 | content_opt[:data] = {"rels" => issue_relations(options[:issue]).to_json} | |
|
757 | 753 | end |
|
758 | 754 | output << view.content_tag(:div, ' '.html_safe, content_opt) |
|
759 | 755 | if coords[:bar_late_end] |
@@ -19,17 +19,14 function getRelationsArray() { | |||
|
19 | 19 | var issue_id = element_id.replace("task-todo-issue-", ""); |
|
20 | 20 | var data_rels = $(element).data("rels"); |
|
21 | 21 | if (data_rels != null) { |
|
22 |
for (rel_type_key in |
|
|
23 | if (rel_type_key in data_rels) { | |
|
24 | var issue_arr = data_rels[rel_type_key].toString().split(","); | |
|
25 | $.each(issue_arr, function(index_issue, element_issue) { | |
|
22 | for (rel_type_key in data_rels) { | |
|
23 | $.each(data_rels[rel_type_key], function(index_issue, element_issue) { | |
|
26 | 24 |
|
|
27 | 25 |
|
|
28 | 26 |
|
|
29 | 27 |
|
|
30 | 28 |
|
|
31 | 29 |
|
|
32 | } | |
|
33 | 30 | }); |
|
34 | 31 | return arr; |
|
35 | 32 | } |
General Comments 0
You need to be logged in to leave comments.
Login now