[website] [minor] moving to framework
diff --git a/public/js/website_utils.js b/public/js/website_utils.js
index b42a986..fceb8f6 100644
--- a/public/js/website_utils.js
+++ b/public/js/website_utils.js
@@ -5,14 +5,18 @@
// Add / update a new Lead / Communication
// subject, sender, description
-erpnext.send_message = function(opts) {
+wn.send_message = function(opts, btn) {
return wn.call({
type: "POST",
- method: "selling.utils.contact.send_message",
+ method: "portal.utils.send_message",
+ btn: btn,
args: opts,
callback: opts.callback
});
-}
+};
+
+// for backward compatibility
+erpnext.send_message = wn.send_message;
// Setup the user tools
//