The serialisation function was not handling parameters correctly.

see #204
This commit is contained in:
Antoine Nguyen
2012-04-25 17:09:50 +02:00
parent 7a11385e0e
commit 664d088d2b
+7 -5
View File
@@ -95,17 +95,19 @@ History.prototype = {
serialize: function() {
var res = this.base;
var args = "";
if (this.paramslength() != 0) {
res += "?";
args += "?";
console.log(this.params);
$.each(this.params, function(key, value) {
if (res != "?") {
res += "&";
if (args != "?") {
args += "&";
}
res += key + "=" + encodeURIComponent(value);
args += key + "=" + encodeURIComponent(value);
});
}
return res;
return res + args;
},
update: function(force, noupdate) {