Skip to content

Commit

Permalink
[refs #94400] Solve inverted metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaboiangiu committed Mar 29, 2018
1 parent 266461a commit e82266f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions insitu/static/js/requirement_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ $(document).ready(function () {
threshold = $.parseHTML(data)[2].innerHTML;
metrics = ''
if (goal){
metrics += 'Goal: ' + '\n' + $.parseHTML(data)[0].innerHTML + '\n'
metrics += 'Threshold: ' + '\n' + $.parseHTML(data)[0].innerHTML + '\n'
}
if(breakthrough){
metrics += 'Breakthrough: ' + '\n' + $.parseHTML(data)[1].innerHTML + '\n'
}
if(threshold){
metrics += 'Threshold: ' + '\n' + $.parseHTML(data)[2].innerHTML + '\n'
metrics += 'Goal: ' + '\n' + $.parseHTML(data)[2].innerHTML + '\n'
}
return metrics.replace(/^\s+|\s+$/g, '')
}
Expand Down Expand Up @@ -123,9 +123,9 @@ $(document).ready(function () {
var breakthrough = data.split('B: ').pop().split(' - G: ').shift();
var goal = data.split('G: ').pop();
return (
generate_div('green', threshold) +
generate_div('orange', threshold) +
generate_div('blue', breakthrough) +
generate_div('orange', goal));
generate_div('green', goal));
},
"targets": [4, 5, 6, 7, 8],
"bSortable": false
Expand Down

0 comments on commit e82266f

Please sign in to comment.