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

git-svn-id: https://develop.svn.wordpress.org/trunk@5498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n
2007-05-21 12:56:39 +00:00
parent 17d49e2c27
commit 1a25ba4bdb

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');