Revision 0784cc50
Von Sven Schöling vor mehr als 15 Jahren hinzugefügt
modules/override/CGI/Ajax.pm | ||
---|---|---|
835 | 835 |
var rsp = $decodefn(this.r.responseText); /* the response from perl */ |
836 | 836 |
var splitval = '__pjx__'; /* to split text */ |
837 | 837 |
/* fix IE problems with undef values in an Array getting squashed*/ |
838 |
rsp = rsp.replace(splitval+splitval+'g',splitval+" "+splitval);
|
|
838 |
rsp = rsp.replace(new RegExp(splitval+splitval, "g"),splitval+" "+splitval);
|
|
839 | 839 |
var data = rsp.split(splitval); |
840 | 840 |
dt = this.target; |
841 | 841 |
if (dt.constructor != Array) { dt=[dt]; } |
Auch abrufbar als: Unified diff
Bugfix: Splitting von CGI::Ajax war buggy.