[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions

This commit is contained in:
Anand Doshi
2013-07-29 19:30:39 +05:30
parent 17082e71f1
commit 1fac2a98cf
68 changed files with 154 additions and 154 deletions

View File

@@ -33,7 +33,7 @@ pscript['onload_Sales Browser'] = function(wrapper){
wrapper.make_tree = function() {
var ctype = wn.get_route()[1] || 'Territory';
wn.call({
return wn.call({
method: 'selling.page.sales_browser.sales_browser.get_children',
args: {ctype: ctype},
callback: function(r) {
@@ -155,7 +155,7 @@ erpnext.SalesChart = Class.extend({
v.parent = node.data('label');
v.ctype = me.ctype;
wn.call({
return wn.call({
method: 'selling.page.sales_browser.sales_browser.add_node',
args: v,
callback: function() {