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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
408 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 = {};
2015-05-25 05:20:48 +00:00
erpnext.subscribe_to_newsletter = function(opts, btn) {
return frappe.call({
type: "POST",
2016-06-28 05:47:02 +00:00
method: "frappe.email.doctype.newsletter.newsletter.subscribe",
2015-05-25 05:20:48 +00:00
btn: btn,
args: {"email": opts.email},
callback: opts.callback
});
}