Correctly disable and un-disable fields

when toggle between offline and online payment methods.
This commit is contained in:
Gary Guo 2016-10-26 18:13:43 -04:00
parent 09fa83c7ee
commit 66fea25464
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();