Merge pull request #229 from nbdd0121/master
Correctly disable and un-disable fields
This commit is contained in:
commit
b06083c6bf
|
|
@ -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