From f6c942eb55eb5f9f386e6c0ac75ea84ebc17b759 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 26 Feb 2014 17:58:13 +0530 Subject: [PATCH] fix to contact page --- frappe/templates/pages/contact.py | 4 +--- frappe/website/js/website.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frappe/templates/pages/contact.py b/frappe/templates/pages/contact.py index 8e37faca8d..89fcc7c9a2 100644 --- a/frappe/templates/pages/contact.py +++ b/frappe/templates/pages/contact.py @@ -45,6 +45,4 @@ def send_message(subject="Website Query", message="", sender=""): from frappe.utils.email_lib import sendmail sendmail(forward_to_email, sender, message, subject) - frappe.response.status = "okay" - - return True \ No newline at end of file + return "okay" \ No newline at end of file diff --git a/frappe/website/js/website.js b/frappe/website/js/website.js index e6a2af0ff0..820ae2ee5d 100644 --- a/frappe/website/js/website.js +++ b/frappe/website/js/website.js @@ -158,7 +158,7 @@ $.extend(frappe, { send_message: function(opts, btn) { return frappe.call({ type: "POST", - method: "frappe.website.doctype.contact_us_settings.templates.pages.contact.send_message", + method: "frappe.templates.pages.contact.send_message", btn: btn, args: opts, callback: opts.callback