Correctly disable and un-disable fields
when toggle between offline and online payment methods.
This commit is contained in:
parent
09fa83c7ee
commit
66fea25464
|
|
@ -170,7 +170,7 @@ $(function() {
|
|||
$('.offline_payment').toggle(this.checked);
|
||||
|
||||
// Disable CC form inputs to prevent Chrome trying to validate hidden fields
|
||||
$('.online_payment input:hidden, .online_payment input select:hidden').attr('disabled', this.checked);
|
||||
$('.online_payment input, .online_payment select').attr('disabled', this.checked);
|
||||
|
||||
}).change();
|
||||
|
||||
|
|
|
|||
|
|
@ -4738,7 +4738,7 @@ function log() {
|
|||
$('.offline_payment').toggle(this.checked);
|
||||
|
||||
// Disable CC form inputs to prevent Chrome trying to validate hidden fields
|
||||
$('.online_payment input:hidden, .online_payment input select:hidden').attr('disabled', this.checked);
|
||||
$('.online_payment input, .online_payment select').attr('disabled', this.checked);
|
||||
|
||||
}).change();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue