style: format js files
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
if(!window.erpnext) window.erpnext = {};
|
||||
if (!window.erpnext) window.erpnext = {};
|
||||
|
||||
// Add / update a new Lead / Communication
|
||||
// subject, sender, description
|
||||
frappe.send_message = function(opts, btn) {
|
||||
frappe.send_message = function (opts, btn) {
|
||||
return frappe.call({
|
||||
type: "POST",
|
||||
method: "erpnext.templates.utils.send_message",
|
||||
btn: btn,
|
||||
args: opts,
|
||||
callback: opts.callback
|
||||
callback: opts.callback,
|
||||
});
|
||||
};
|
||||
|
||||
erpnext.subscribe_to_newsletter = function(opts, btn) {
|
||||
erpnext.subscribe_to_newsletter = function (opts, btn) {
|
||||
return frappe.call({
|
||||
type: "POST",
|
||||
method: "frappe.email.doctype.newsletter.newsletter.subscribe",
|
||||
btn: btn,
|
||||
args: {"email": opts.email},
|
||||
callback: opts.callback
|
||||
args: { email: opts.email },
|
||||
callback: opts.callback,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// for backward compatibility
|
||||
erpnext.send_message = frappe.send_message;
|
||||
|
||||
Reference in New Issue
Block a user