fix #1146 jquery-extensions.js is compatible with low-level browsers.

pull/1148/head^2
maliming 6 years ago
parent 180b39fcd6
commit ce50d6c7d9

@ -87,7 +87,7 @@
return str;
};
$.fn.serializeFormToObject = function (camelCase = true) {
$.fn.serializeFormToObject = function (camelCase) {
//serialize to array
var data = $(this).serializeArray();
@ -108,7 +108,7 @@
//map to object
var obj = {};
if (camelCase) {
if (camelCase !== undefined ? camelCase : true) {
data.forEach(function (d) {
d.name = toCamelCase(d.name);
});

Loading…
Cancel
Save