bugfix
This commit is contained in:
parent
3329695671
commit
c438882f74
1 changed files with 1 additions and 0 deletions
1
resource/web/js/hal.js
vendored
1
resource/web/js/hal.js
vendored
|
|
@ -156,6 +156,7 @@ function initDynamicModalForm(modalId, formTemplateId, templateID){
|
||||||
return this.name.toLowerCase() == fieldName;
|
return this.name.toLowerCase() == fieldName;
|
||||||
});
|
});
|
||||||
if (input.attr("type") == "checkbox") { // special handling for checkboxes
|
if (input.attr("type") == "checkbox") { // special handling for checkboxes
|
||||||
|
input.attr("value", "true");
|
||||||
if (value=="true") input.attr("checked", "true");
|
if (value=="true") input.attr("checked", "true");
|
||||||
else input.removeAttr("checked");
|
else input.removeAttr("checked");
|
||||||
// Add default false value as a unchecked checkbox is not included in the post
|
// Add default false value as a unchecked checkbox is not included in the post
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue