Fix: Works with checkbox htdocs/core/class/html.form.class.php
This commit is contained in:
parent
d0480f1d90
commit
82b31e1f5b
@ -2254,7 +2254,10 @@ class Form
|
|||||||
if ($inputarray.length>0) {
|
if ($inputarray.length>0) {
|
||||||
$.each($inputarray, function() {
|
$.each($inputarray, function() {
|
||||||
var inputname = this;
|
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;
|
options += \'&\' + inputname + \'=\' + inputvalue;
|
||||||
});
|
});
|
||||||
//alert(options);
|
//alert(options);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user