Revert "Fixed wrong calculated price when comma is used instead of dot."

This reverts commit 1a3542ada2dd63f59adeafc0d1f434057d5da927.
This commit is contained in:
Julien Chanséaume
2014-07-15 16:39:51 +02:00
committed by Julien Chanseaume
parent 97559fe8c2
commit 0310dce719
2 changed files with 1 additions and 13 deletions

View File

@@ -794,16 +794,10 @@
captureLength: 1, captureLength: 1,
wait : 300, wait : 300,
callback : function () { 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(",", ".");
};
}); });
</script> </script>
{/block} {/block}

View File

@@ -363,16 +363,10 @@ $(function() {
captureLength: 1, captureLength: 1,
wait : 300, wait : 300,
callback : function () { callback : function () {
var price = $(this).val(); update_price($(this).val(), $(this).data('price-type'), $(this).data('rel-price'));
$(this).val(sanitizeFloat(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 // Count generated combinations in real time
function countGeneratedCombinations() { function countGeneratedCombinations() {