[email] [website] footer cleanup

This commit is contained in:
Rushabh Mehta
2015-05-25 10:50:48 +05:30
committed by Nabin Hait
parent 314af94737
commit f29a618b69
14 changed files with 71 additions and 166 deletions

View File

@@ -15,5 +15,15 @@ frappe.send_message = function(opts, btn) {
});
};
erpnext.subscribe_to_newsletter = function(opts, btn) {
return frappe.call({
type: "POST",
method: "erpnext.crm.doctype.newsletter.newsletter.subscribe",
btn: btn,
args: {"email": opts.email},
callback: opts.callback
});
}
// for backward compatibility
erpnext.send_message = frappe.send_message;
erpnext.send_message = frappe.send_message;