brotherton-erpnext/erpnext/public/js/website_utils.js

19 lines
513 B
JavaScript
Raw Normal View History

// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
if(!window.erpnext) window.erpnext = {};
2013-03-19 05:42:22 +00:00
// Add / update a new Lead / Communication
// 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",
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-09-11 13:28:20 +00:00
};
// for backward compatibility
2014-02-14 10:17:51 +00:00
erpnext.send_message = frappe.send_message;