This commit is contained in:
Ziver Koc 2017-04-01 00:19:18 +02:00
parent 3329695671
commit c438882f74

View file

@ -156,6 +156,7 @@ function initDynamicModalForm(modalId, formTemplateId, templateID){
return this.name.toLowerCase() == fieldName;
});
if (input.attr("type") == "checkbox") { // special handling for checkboxes
input.attr("value", "true");
if (value=="true") input.attr("checked", "true");
else input.removeAttr("checked");
// Add default false value as a unchecked checkbox is not included in the post