mirror of
https://github.com/openclassify/openclassify.git
synced 2026-03-09 09:45:26 -05:00
price-filter currency mask removed because breaks the input
This commit is contained in:
parent
97fff9bc9a
commit
0583b64a65
@ -1,8 +0,0 @@
|
||||
$("input[data-type='currency']").on('blur', function() {
|
||||
const value = this.value.replace(/,/g, '');
|
||||
this.value = parseFloat(value).toLocaleString('en-US', {
|
||||
style: 'decimal',
|
||||
maximumFractionDigits: 2,
|
||||
minimumFractionDigits: 2
|
||||
});
|
||||
});
|
||||
@ -19,14 +19,12 @@
|
||||
<input type="number" class="price-input form-control w-100"
|
||||
value="{{ app.request.get('min_price') }}"
|
||||
name="min_price" min="0"
|
||||
data-type="currency"
|
||||
placeholder="{{ trans('visiosoft.module.advs::field.min.name') }}">
|
||||
</div>
|
||||
<div class="col-md-4 p-1 pr-0 m-0">
|
||||
<input class="price-input form-control w-100" type="number"
|
||||
value="{{ app.request.get('max_price') }}"
|
||||
name="max_price"
|
||||
data-type="currency"
|
||||
placeholder="{{ trans('visiosoft.module.advs::field.max.name') }}">
|
||||
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user