X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-ui-debug.js;h=4256ded81bf53efd8327f9633f9a970c9b9fcc41;hp=699aabf81ab3a453bd83d9acc270c4b02183456d;hb=f82889b9a1866c045141af3238da91787156abbc;hpb=c2162fa64f4d6cb2a21a9296cdf9c79ab00ece5e diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 699aabf81a..4256ded81b 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -24907,6 +24907,17 @@ clientValidation Boolean Applies to submit only. Pass true to call fo }, this); } + // use formdata + if (typeof(FormData) != 'undefined' && asString !== true) { + var fd = (new FormData(this.el.dom)).entries(); + var ret = {}; + var ent = fd.next(); + while (!ent.done) { + ret[ent.value[0]] = ent.value[1]; // not sure how this will handle duplicates.. + ent = fd.next(); + }; + return ret; + } var fs = Roo.lib.Ajax.serializeForm(this.el.dom);