mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions
This commit is contained in:
@@ -5,7 +5,7 @@ var wn = {};
|
||||
// Add / update a new Lead / Communication
|
||||
// subject, sender, description
|
||||
erpnext.send_message = function(opts) {
|
||||
wn.call({
|
||||
return wn.call({
|
||||
type: "POST",
|
||||
method: "website.helpers.contact.send_message",
|
||||
args: opts,
|
||||
@@ -202,7 +202,7 @@ $.extend(wn.cart, {
|
||||
}
|
||||
window.location.href = "login";
|
||||
} else {
|
||||
wn.call({
|
||||
return wn.call({
|
||||
type: "POST",
|
||||
method: "website.helpers.cart.update_cart",
|
||||
args: {
|
||||
|
||||
Reference in New Issue
Block a user