mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
[website] [minor] moving to framework
This commit is contained in:
@@ -5,14 +5,18 @@ if(!window.erpnext) erpnext = {};
|
||||
|
||||
// Add / update a new Lead / Communication
|
||||
// subject, sender, description
|
||||
erpnext.send_message = function(opts) {
|
||||
wn.send_message = function(opts, btn) {
|
||||
return wn.call({
|
||||
type: "POST",
|
||||
method: "selling.utils.contact.send_message",
|
||||
method: "portal.utils.send_message",
|
||||
btn: btn,
|
||||
args: opts,
|
||||
callback: opts.callback
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// for backward compatibility
|
||||
erpnext.send_message = wn.send_message;
|
||||
|
||||
// Setup the user tools
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user