update on cart.js pull request feedback
This commit is contained in:
parent
0a33d4ffc5
commit
c6b52a321e
@ -24,9 +24,6 @@ $.extend(shopping_cart, {
|
||||
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 @@ $.extend(shopping_cart, {
|
||||
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 @@ $.extend(shopping_cart, {
|
||||
if(!r.exc) {
|
||||
$(".cart-tax-items").html(r.message.taxes);
|
||||
}
|
||||
// unfreeze:
|
||||
frappe.unfreeze();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user