diff options
| author | svs-odoo <svs@odoo.com> | 2018-09-13 12:01:20 +0200 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2018-09-26 09:33:03 +0200 |
| commit | de2a1d328d2a3f412b9882bea66340b2e7b8acff (patch) | |
| tree | b90cb7d75975d169f3572ea348f3b60daf151d29 | |
| parent | f04ede4ec886d5e8dc60e2d3214dcaa86ced54c8 (diff) | |
[FIX] web: replace bad indentation characters
Done when working on task #1882569
| -rw-r--r-- | addons/web/static/src/js/core/data_comparison_utils.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/web/static/src/js/core/data_comparison_utils.js b/addons/web/static/src/js/core/data_comparison_utils.js index b520a56e7d8..031d9e51b1b 100644 --- a/addons/web/static/src/js/core/data_comparison_utils.js +++ b/addons/web/static/src/js/core/data_comparison_utils.js @@ -13,10 +13,10 @@ function computeVariation (value, comparisonValue) { var signClass; if (!isNaN(value) && !isNaN(comparisonValue)) { - if (comparisonValue === 0) { - if (value === 0) { - magnitude = 0; - } else if (value > 0){ + if (comparisonValue === 0) { + if (value === 0) { + magnitude = 0; + } else if (value > 0){ magnitude = 1; } else { magnitude = -1; @@ -24,7 +24,7 @@ function computeVariation (value, comparisonValue) { } else { magnitude = (value - comparisonValue) / Math.abs(comparisonValue); } - if (magnitude > 0) { + if (magnitude > 0) { signClass = ' o_positive'; } else if (magnitude < 0) { signClass = ' o_negative'; @@ -50,9 +50,9 @@ function renderVariation (variation, field, options) { fieldUtils.format.percentage(variation.magnitude, field, options )); } else { - $variation = $('<div>', {class: 'o_variation'}).html('-'); + $variation = $('<div>', {class: 'o_variation'}).html('-'); } - return $variation; + return $variation; } /** @@ -66,7 +66,7 @@ function renderVariation (variation, field, options) { * @returns {Object} */ function renderComparison ($node, value, comparisonValue, variation, formatter, field, options) { - var $variation = renderVariation(variation, field, options); + var $variation = renderVariation(variation, field, options); $node.append($variation); if (!isNaN(variation.magnitude)) { $node.append( |
