[doc] Comment that checkbox should not be required

This commit is contained in:
Jérôme Lebleu 2016-05-23 11:31:23 +02:00
parent 17ee79846b
commit b2f975accb

View file

@ -157,7 +157,6 @@
// Boolean fields // Boolean fields
if (data.manifest.arguments.install[k].type == 'boolean') { if (data.manifest.arguments.install[k].type == 'boolean') {
data.manifest.arguments.install[k].inputType = 'checkbox'; data.manifest.arguments.install[k].inputType = 'checkbox';
data.manifest.arguments.install[k].required = '';
// Checked or not ? // Checked or not ?
if (typeof data.manifest.arguments.install[k].default !== 'undefined') { if (typeof data.manifest.arguments.install[k].default !== 'undefined') {
@ -168,6 +167,9 @@
// 'default' is used as value, so we need to force it for checkboxes. // 'default' is used as value, so we need to force it for checkboxes.
data.manifest.arguments.install[k].default = 1; data.manifest.arguments.install[k].default = 1;
// Checkbox should not be required to be unchecked
data.manifest.arguments.install[k].required = '';
} }
// 'password' type input. // 'password' type input.