dotpay / PrestaShop-1.7

PrestaShop Dotpay payment module for PrestaShop 1.7
1 stars 9 forks source link

Inputs selection problem in last step #38

Closed damiweb closed 4 years ago

damiweb commented 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

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"]).

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

wpawel commented 4 years ago

Please check it in: v1.2.3