X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/fcc318eb414179e86e2cd827183485f6a89ea9fc..85422b200b3327de9a5c7b0d550d9afc6fb62286:/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