2013-11-20 07:29:58 +00:00
|
|
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2013-12-31 12:08:21 +00:00
|
|
|
if(!window.erpnext) window.erpnext = {};
|
2012-12-14 11:09:27 +00:00
|
|
|
|
2013-03-19 05:42:22 +00:00
|
|
|
// Add / update a new Lead / Communication
|
2012-12-14 11:09:27 +00:00
|
|
|
// subject, sender, description
|
2014-02-14 10:17:51 +00:00
|
|
|
frappe.send_message = function(opts, btn) {
|
|
|
|
return frappe.call({
|
2013-03-19 12:29:49 +00:00
|
|
|
type: "POST",
|
2013-12-31 12:08:21 +00:00
|
|
|
method: "erpnext.templates.utils.send_message",
|
2013-09-11 13:28:20 +00:00
|
|
|
btn: btn,
|
2013-03-19 12:29:49 +00:00
|
|
|
args: opts,
|
|
|
|
callback: opts.callback
|
2013-07-02 06:10:16 +00:00
|
|
|
});
|
2013-09-11 13:28:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// for backward compatibility
|
2014-02-14 10:17:51 +00:00
|
|
|
erpnext.send_message = frappe.send_message;
|