diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-05 12:41:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-05 12:41:24 +0000 |
commit | f9325193be7c60f09598614b76bd651f063f7b27 (patch) | |
tree | 34aa24f0eb91f9da38f5a5a724e0b29806c4c56b /public/javascripts/gantt.js | |
parent | 59ddbf8c09a730d042806c6b52db32e392a78c95 (diff) | |
download | redmine-f9325193be7c60f09598614b76bd651f063f7b27.tar.gz redmine-f9325193be7c60f09598614b76bd651f063f7b27.zip |
Only process issues that have relations.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11120 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts/gantt.js')
-rw-r--r-- | public/javascripts/gantt.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/public/javascripts/gantt.js b/public/javascripts/gantt.js index 51e2257e0..066a15884 100644 --- a/public/javascripts/gantt.js +++ b/public/javascripts/gantt.js @@ -13,18 +13,16 @@ function setDrawArea() { function getRelationsArray() { var arr = new Array(); - $.each($('div.task_todo'), function(index_div, element) { + $.each($('div.task_todo[data-rels]'), function(index_div, element) { var element_id = $(element).attr("id"); if (element_id != null) { var issue_id = element_id.replace("task-todo-issue-", ""); var data_rels = $(element).data("rels"); - if (data_rels != null) { - for (rel_type_key in data_rels) { - $.each(data_rels[rel_type_key], function(index_issue, element_issue) { - arr.push({issue_from: issue_id, issue_to: element_issue, - rel_type: rel_type_key}); - }); - } + for (rel_type_key in data_rels) { + $.each(data_rels[rel_type_key], function(index_issue, element_issue) { + arr.push({issue_from: issue_id, issue_to: element_issue, + rel_type: rel_type_key}); + }); } } }); |