Commit 8236c924 authored by googletorp's avatar googletorp

Improve JS a bit, removing redundant code.

parent 7e8be647
...@@ -37,7 +37,7 @@ $.fn.commerceCheckShippingRecalculation = function() { ...@@ -37,7 +37,7 @@ $.fn.commerceCheckShippingRecalculation = function() {
// think we should do. // think we should do.
if (!$('[id^="edit-customer-profile-"]').find('.ajax-progress').length) { if (!$('[id^="edit-customer-profile-"]').find('.ajax-progress').length) {
$('[id^="edit-customer-profile-shipping"] .form-item').children('.required').each(function() { $('[id^="edit-customer-profile-shipping"] .form-item').children('.required').each(function() {
if (!$(this).val() || $(this).val() == '' || $(this).val() == null) { if (!$(this).val()) {
recalculate = false; recalculate = false;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment