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

19 lines
516 B
JavaScript
Raw Normal View History

2013-11-20 12:59:58 +05:30
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
if(!window.erpnext) window.erpnext = {};
2013-03-19 11:12:22 +05:30
// Add / update a new Lead / Communication
// subject, sender, description
2014-02-14 15:47:51 +05:30
frappe.send_message = function(opts, btn) {
return frappe.call({
2013-03-19 17:59:49 +05:30
type: "POST",
method: "erpnext.templates.utils.send_message",
2013-09-11 18:58:20 +05:30
btn: btn,
2013-03-19 17:59:49 +05:30
args: opts,
callback: opts.callback
});
2013-09-11 18:58:20 +05:30
};
// for backward compatibility
2014-02-14 15:47:51 +05:30
erpnext.send_message = frappe.send_message;