diff --git a/frappe/website/js/website.js b/frappe/website/js/website.js index 67d8b7e67a..711bc514c3 100644 --- a/frappe/website/js/website.js +++ b/frappe/website/js/website.js @@ -35,6 +35,14 @@ $.extend(frappe, { }, call: function(opts) { // opts = {"method": "PYTHON MODULE STRING", "args": {}, "callback": function(r) {}} + if (typeof arguments[0]==='string') { + opts = { + method: arguments[0], + args: arguments[1], + callback: arguments[2] + } + } + frappe.prepare_call(opts); if(opts.freeze) { frappe.freeze();