# HG changeset patch # User jbe # Date 1315335911 -7200 # Node ID 89030e955845479454196b76aaa12b89f6f2b836 # Parent a1c77838c2e5e73aba2c9fcfbfbbe4a091db29eb Changed partialload_encodeFormData(...) to allow non-string objects implementing .toString() diff -r a1c77838c2e5 -r 89030e955845 framework/js/partialload.js --- a/framework/js/partialload.js Fri Jun 10 15:32:29 2011 +0200 +++ b/framework/js/partialload.js Tue Sep 06 21:05:11 2011 +0200 @@ -23,15 +23,15 @@ var result = ""; for (var key in params) { var value = params[key]; - if (typeof(value) == "string") { - if (result != "") result += "&"; - result += encodeURIComponent(key) + "=" + encodeURIComponent(value); - } else if (typeof(value) == "object") { + if (value instanceof Array) { var i; for (i=0; i