From de2a1d328d2a3f412b9882bea66340b2e7b8acff Mon Sep 17 00:00:00 2001 From: svs-odoo Date: Thu, 13 Sep 2018 12:01:20 +0200 Subject: [PATCH] [FIX] web: replace bad indentation characters Done when working on task #1882569 --- .../static/src/js/core/data_comparison_utils.js | 16 ++++++++-------- 1 file 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 = $('
', {class: 'o_variation'}).html('-'); + $variation = $('
', {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(