diff options
author | Go MAEDA <maeda@farend.jp> | 2020-05-02 01:19:03 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-05-02 01:19:03 +0000 |
commit | fcb6b44f4fdd820189a0cdd31501a150125cdf9f (patch) | |
tree | 5a19b0eaeb5958a8e8fe80689ffe711afce25a30 /public/javascripts/gantt.js | |
parent | b6a3c2a34149331912f86fa92a1b32cdc2307957 (diff) | |
download | redmine-fcb6b44f4fdd820189a0cdd31501a150125cdf9f.tar.gz redmine-fcb6b44f4fdd820189a0cdd31501a150125cdf9f.zip |
Replace deprecated size() method with length property (#33384).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@19739 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts/gantt.js')
-rw-r--r-- | public/javascripts/gantt.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/gantt.js b/public/javascripts/gantt.js index 0af5363d4..da3b86b7a 100644 --- a/public/javascripts/gantt.js +++ b/public/javascripts/gantt.js @@ -38,7 +38,7 @@ function drawRelations() { $.each(arr, function(index_issue, element_issue) { var issue_from = $("#task-todo-issue-" + element_issue["issue_from"]); var issue_to = $("#task-todo-issue-" + element_issue["issue_to"]); - if (issue_from.size() == 0 || issue_to.size() == 0) { + if (issue_from.length == 0 || issue_to.length == 0) { return; } var issue_height = issue_from.height(); @@ -124,7 +124,7 @@ function getProgressLinesArray() { if (is_over_end) { arr.push({left: draw_right, top: element_top_upper, is_right_edge: true}); arr.push({left: draw_right, top: element_top_lower, is_right_edge: true, none_stroke: true}); - } else if (issue_done.size() > 0) { + } else if (issue_done.length > 0) { var done_left = issue_done.first().position().left + issue_done.first().width(); arr.push({left: done_left, top: element_top_center}); @@ -134,7 +134,7 @@ function getProgressLinesArray() { } else { var todo_left = today_left; var issue_todo = $("#task-todo-" + $(element).attr("id")); - if (issue_todo.size() > 0){ + if (issue_todo.length > 0){ todo_left = issue_todo.first().position().left; } arr.push({left: Math.min(today_left, todo_left), top: element_top_center}); |