mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
fix price
This commit is contained in:
parent
707fb2ab19
commit
50b61dd99d
@ -201,7 +201,7 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(".priceField").on('change',function () {
|
$(".priceField").on('change',function () {
|
||||||
var price = parseFloat($(".priceField").val().replace('.','').replace(',','.'));
|
var price = parseFloat($(".priceField").val().replace(/\./g, '').replace(',','.'));
|
||||||
$('.priceHidden').find('input').val(price);
|
$('.priceHidden').find('input').val(price);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user