mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
The serialisation function was not handling parameters correctly.
see #204
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user