FIX #15991
This commit is contained in:
parent
9426512eaf
commit
506d809712
@ -4419,10 +4419,15 @@ class Form
|
|||||||
if (inputok.length>0) {
|
if (inputok.length>0) {
|
||||||
$.each(inputok, function(i, inputname) {
|
$.each(inputok, function(i, inputname) {
|
||||||
var more = "";
|
var more = "";
|
||||||
if ($("#" + inputname).attr("type") == "checkbox") { more = ":checked"; }
|
var inputvalue;
|
||||||
if ($("#" + inputname).attr("type") == "radio") { more = ":checked"; }
|
if ($("input[name=\'" + inputname + "\']").attr("type") == "radio") {
|
||||||
var inputvalue = $("#" + inputname + more).val();
|
inputvalue = $("input[name=\'" + inputname + "\']").val();
|
||||||
|
} else {
|
||||||
|
if ($("#" + inputname).attr("type") == "checkbox") { more = ":checked"; }
|
||||||
|
inputvalue = $("#" + inputname + more).val();
|
||||||
|
}
|
||||||
if (typeof inputvalue == "undefined") { inputvalue=""; }
|
if (typeof inputvalue == "undefined") { inputvalue=""; }
|
||||||
|
console.log("check inputname="+inputname+" inputvalue="+inputvalue);
|
||||||
options += "&" + inputname + "=" + encodeURIComponent(inputvalue);
|
options += "&" + inputname + "=" + encodeURIComponent(inputvalue);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user