Revert "Fixed wrong calculated price when comma is used instead of dot."
This reverts commit 1a3542ada2dd63f59adeafc0d1f434057d5da927.
This commit is contained in:
committed by
Julien Chanseaume
parent
97559fe8c2
commit
0310dce719
@@ -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}
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user