X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/fcc318eb414179e86e2cd827183485f6a89ea9fc..cd54b10e5b17bf9ccf424f255fbfc81da374e09b:/modules/override/CGI/Ajax.pm diff --git a/modules/override/CGI/Ajax.pm b/modules/override/CGI/Ajax.pm index 41e9c3342..f4e063e11 100644 --- a/modules/override/CGI/Ajax.pm +++ b/modules/override/CGI/Ajax.pm @@ -840,17 +840,21 @@ pjx.prototype = { dt = this.target; if (dt.constructor != Array) { dt=[dt]; } if (data.constructor != Array) { data=[data]; } - if (typeof(dt[0])!='function') { + if (typeof(dt[0])=='function') { + dt[0].apply(this,data); + } else { for ( var i=0; i