fix: Hide button and cart after success
This commit is contained in:
parent
5f1eebec16
commit
358329d7df
@ -162,6 +162,8 @@ $.extend(shopping_cart, {
|
|||||||
.html(msg || frappe._("Something went wrong!"))
|
.html(msg || frappe._("Something went wrong!"))
|
||||||
.toggle(true);
|
.toggle(true);
|
||||||
} else {
|
} else {
|
||||||
|
$('.cart-container table').hide();
|
||||||
|
$(btn).hide();
|
||||||
window.location.href = '/orders/' + encodeURIComponent(r.message);
|
window.location.href = '/orders/' + encodeURIComponent(r.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -185,6 +187,8 @@ $.extend(shopping_cart, {
|
|||||||
.html(msg || frappe._("Something went wrong!"))
|
.html(msg || frappe._("Something went wrong!"))
|
||||||
.toggle(true);
|
.toggle(true);
|
||||||
} else {
|
} else {
|
||||||
|
$('.cart-container table').hide();
|
||||||
|
$(btn).hide();
|
||||||
window.location.href = '/quotations/' + encodeURIComponent(r.message);
|
window.location.href = '/quotations/' + encodeURIComponent(r.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user