From b474ca3d859d006f61e605dcb449eb2c25a809d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 6 Dec 2012 11:58:29 +0100 Subject: [PATCH] [-] FO: Fix cart summary ajax refreshment --- themes/default/js/tools.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/default/js/tools.js b/themes/default/js/tools.js index ee9d704e0..95482606e 100644 --- a/themes/default/js/tools.js +++ b/themes/default/js/tools.js @@ -86,15 +86,15 @@ function formatCurrency(price, currencyFormat, currencySign, currencyBlank) price = ps_round(price, priceDisplayPrecision); if (currencyBlank > 0) blank = ' '; - if (currencyFormat === 1) + if (currencyFormat == 1) return currencySign + blank + formatNumber(price, priceDisplayPrecision, ',', '.'); - if (currencyFormat === 2) + if (currencyFormat == 2) return (formatNumber(price, priceDisplayPrecision, ' ', ',') + blank + currencySign); - if (currencyFormat === 3) + if (currencyFormat == 3) return (currencySign + blank + formatNumber(price, priceDisplayPrecision, '.', ',')); - if (currencyFormat === 4) + if (currencyFormat == 4) return (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign); - if (currencyFormat === 5) + if (currencyFormat == 5) return (formatNumber(price, priceDisplayPrecision, ' ', '.') + blank + currencySign); return price; }