Fix: Works with checkbox htdocs/core/class/html.form.class.php

This commit is contained in:
Laurent Destailleur 2012-05-07 19:06:23 +02:00
parent d0480f1d90
commit 82b31e1f5b

View File

@ -2254,7 +2254,10 @@ class Form
if ($inputarray.length>0) {
$.each($inputarray, function() {
var inputname = this;
var inputvalue = $("#" + this).val();
var more = \'\';
if ($("#" + this).attr("type") == \'checkbox\') { more = \':checked\'; }
var inputvalue = $("#" + this + more).val();
if (typeof inputvalue == \'undefined\') { inputvalue=\'\'; }
options += \'&\' + inputname + \'=\' + inputvalue;
});
//alert(options);