X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/fcc318eb414179e86e2cd827183485f6a89ea9fc..f0e64d77dee59da736fc61304e45ad50210faa55:/modules/override/CGI/Ajax.pm diff --git a/modules/override/CGI/Ajax.pm b/modules/override/CGI/Ajax.pm index 41e9c3342..95cefece3 100644 --- a/modules/override/CGI/Ajax.pm +++ b/modules/override/CGI/Ajax.pm @@ -834,23 +834,25 @@ pjx.prototype = { readyState4 : function(){ var rsp = $decodefn(this.r.responseText); /* the response from perl */ var splitval = '__pjx__'; /* to split text */ - /* fix IE problems with undef values in an Array getting squashed*/ - rsp = rsp.replace(splitval+splitval+'g',splitval+" "+splitval); var data = rsp.split(splitval); 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