update on cart.js pull request feedback
diff --git a/erpnext/templates/includes/cart.js b/erpnext/templates/includes/cart.js
index 93b5ae0..ee98b23 100644
--- a/erpnext/templates/includes/cart.js
+++ b/erpnext/templates/includes/cart.js
@@ -24,9 +24,6 @@
if($(this).prop("checked")) {
var me = this;
- // freeze ui and wait for response:
- frappe.freeze();
-
// uncheck other shipping or billing addresses:
if ( $(this).is('input[data-fieldname=customer_address]') ) {
$('input[data-fieldname=customer_address]').not(this).prop('checked', false);
@@ -37,6 +34,7 @@
return frappe.call({
type: "POST",
method: "erpnext.shopping_cart.cart.update_cart_address",
+ freeze: true,
args: {
address_fieldname: $(this).attr("data-fieldname"),
address_name: $(this).attr("data-address-name")
@@ -45,8 +43,6 @@
if(!r.exc) {
$(".cart-tax-items").html(r.message.taxes);
}
- // unfreeze:
- frappe.unfreeze();
}
});
} else {