Merge pull request #229 from nbdd0121/master

Correctly disable and un-disable fields
This commit is contained in:
Dave Earley 2016-11-03 21:05:20 +00:00 committed by GitHub
commit b06083c6bf
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();