Fix wp-ajax.js addArg's hashes. Props technosailor. fixes #4277

git-svn-id: http://svn.automattic.com/wordpress/trunk@5498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-21 12:56:39 +00:00
parent 69c2d56a31
commit b83c9dae09
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ Object.extend(WPAjax.prototype, {
this.getResponseElement(responseEl);
},
addArg: function(key, value) {
var a = [];
var a = $H();
a[encodeURIComponent(key)] = encodeURIComponent(value);
this.options.parameters = $H(this.options.parameters).merge($H(a));
this.options.parameters = $H(this.options.parameters).merge(a);
},
getResponseElement: function(r) {
var p = $(r + '-p');