Closed damiweb closed 4 years ago
I suggest to make selector more precise, because in current form it conflicts with any required input inside #checkbox-payment-step element. Besides when you make an assumption few line lower https://github.com/dotpay/PrestaShop-1.7/blob/04dc621a133872fb884e00d5442bec3123e5332f/views/js/front.js#L21
#checkbox-payment-step
that inputs you are looking for are checkbox'es, because they have property checked maybe it is better to select only checkboxes (eg. [type="checkbox"]).
checked
[type="checkbox"]
https://github.com/dotpay/PrestaShop-1.7/blob/04dc621a133872fb884e00d5442bec3123e5332f/views/js/front.js#L18
https://github.com/dotpay/PrestaShop-1.7/blob/04dc621a133872fb884e00d5442bec3123e5332f/views/js/front.js#L42
Please check it in: v1.2.3
I suggest to make selector more precise, because in current form it conflicts with any required input inside
#checkbox-payment-step
element. Besides when you make an assumption few line lower https://github.com/dotpay/PrestaShop-1.7/blob/04dc621a133872fb884e00d5442bec3123e5332f/views/js/front.js#L21that inputs you are looking for are checkbox'es, because they have property
checked
maybe it is better to select only checkboxes (eg.[type="checkbox"]
).https://github.com/dotpay/PrestaShop-1.7/blob/04dc621a133872fb884e00d5442bec3123e5332f/views/js/front.js#L18
https://github.com/dotpay/PrestaShop-1.7/blob/04dc621a133872fb884e00d5442bec3123e5332f/views/js/front.js#L42