diff options
Diffstat (limited to 'assets/js/components')
-rw-r--r-- | assets/js/components/chart-project-burndown.js | 9 | ||||
-rw-r--r-- | assets/js/components/chart-project-cumulative-flow.js | 7 | ||||
-rw-r--r-- | assets/js/components/external-task-view.js | 2 |
3 files changed, 8 insertions, 10 deletions
diff --git a/assets/js/components/chart-project-burndown.js b/assets/js/components/chart-project-burndown.js index 59dc861e..abcab925 100644 --- a/assets/js/components/chart-project-burndown.js +++ b/assets/js/components/chart-project-burndown.js @@ -11,22 +11,21 @@ KB.component('chart-project-burndown', function (containerElement, options) { for (var j = 0; j < metrics[i].length; j++) { - if (i == 0) { + if (i === 0) { columns.push([metrics[i][j]]); - } - else { + } else { columns[j + 1].push(metrics[i][j]); if (j > 0) { - if (columns[0][i] == undefined) { + if (columns[0][i] === undefined) { columns[0].push(0); } columns[0][i] += metrics[i][j]; } - if (j == 0) { + if (j === 0) { categories.push(outputFormat(inputFormat.parse(metrics[i][j]))); } } diff --git a/assets/js/components/chart-project-cumulative-flow.js b/assets/js/components/chart-project-cumulative-flow.js index 2c8a5682..7b258230 100644 --- a/assets/js/components/chart-project-cumulative-flow.js +++ b/assets/js/components/chart-project-cumulative-flow.js @@ -12,18 +12,17 @@ KB.component('chart-project-cumulative-flow', function (containerElement, option for (var j = 0; j < metrics[i].length; j++) { - if (i == 0) { + if (i === 0) { columns.push([metrics[i][j]]); if (j > 0) { groups.push(metrics[i][j]); } - } - else { + } else { columns[j].push(metrics[i][j]); - if (j == 0) { + if (j === 0) { categories.push(outputFormat(inputFormat.parse(metrics[i][j]))); } } diff --git a/assets/js/components/external-task-view.js b/assets/js/components/external-task-view.js index cad57f8b..d402640b 100644 --- a/assets/js/components/external-task-view.js +++ b/assets/js/components/external-task-view.js @@ -8,5 +8,5 @@ KB.component('external-task-view', function (containerElement, options) { KB.dom(containerElement).html('<div id="external-task-view">' + data + '</div>'); } }); - } + }; }); |