From 0310dce719062cf8598aaa215b70513f252cd8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Chans=C3=A9aume?= Date: Tue, 15 Jul 2014 16:39:51 +0200 Subject: [PATCH] Revert "Fixed wrong calculated price when comma is used instead of dot." This reverts commit 1a3542ada2dd63f59adeafc0d1f434057d5da927. --- templates/backOffice/default/categories.html | 6 ------ templates/backOffice/default/product-edit.html | 8 +------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/templates/backOffice/default/categories.html b/templates/backOffice/default/categories.html index 4a8b69d37..2cd4e0309 100644 --- a/templates/backOffice/default/categories.html +++ b/templates/backOffice/default/categories.html @@ -794,16 +794,10 @@ captureLength: 1, wait : 300, callback : function () { - var price = $(this).val(); - $(this).val(sanitizeFloat(price)); update_price($(this).val(), $(this).data('price-type'), $(this).data('rel-price')); } }); - function sanitizeFloat(numVal) { - return numVal.replace(",", "."); - }; - }); {/block} diff --git a/templates/backOffice/default/product-edit.html b/templates/backOffice/default/product-edit.html index 253b99e60..72df5e344 100644 --- a/templates/backOffice/default/product-edit.html +++ b/templates/backOffice/default/product-edit.html @@ -363,16 +363,10 @@ $(function() { captureLength: 1, wait : 300, callback : function () { - var price = $(this).val(); - $(this).val(sanitizeFloat(price)); - update_price($(this).val(), $(this).data('price-type'), $(this).data('rel-price')); + update_price($(this).val(), $(this).data('price-type'), $(this).data('rel-price')); } }); - function sanitizeFloat(numVal) { - return numVal.replace(",", "."); - }; - // Count generated combinations in real time function countGeneratedCombinations() {