X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Futils.js;h=08334e2fb7a225d8357150edf30aa944826acb49;hb=fcf15181965c266c81d7f142cd5e92e7818e958e;hp=c0df0b85e01e7b86feb5a22c35dcdc92b1cf50b1;hpb=fbf51ab0febfd0885620abcab8738339d156ff45;p=fa-stable.git diff --git a/js/utils.js b/js/utils.js index c0df0b85..08334e2f 100644 --- a/js/utils.js +++ b/js/utils.js @@ -179,7 +179,7 @@ JsHttpRequest._request = function(trigger, form, tout, retry) { } if (el.type ) if( - ((el.type == 'radio' || el.type == 'checkbox') && el.checked == false) + (el.type == 'radio' && el.checked == false) || (el.type == 'submit' && (!submitObj || el.name!=submitObj.name))) continue; if (el.disabled && el.disabled == true) @@ -202,7 +202,11 @@ JsHttpRequest._request = function(trigger, form, tout, retry) { q[name] = el; else { - q[name] = el.value; + if (el.type == 'checkbox') { + q[name] = (el.checked == true); + } else { + q[name] = el.value; + } } } }