Added the possibility to use "option" field type outside a group. This is convenient to create just a single checkbox.
This commit is contained in:
parent
64af46b685
commit
2e847460f4
10 changed files with 117 additions and 26 deletions
|
@ -40,11 +40,19 @@ function parseBirthday(format, text) {
|
|||
}
|
||||
|
||||
function formatDate(format, date) {
|
||||
return moment.utc(date).format(dateFormatStrings[format]);
|
||||
if (date === null) {
|
||||
return '';
|
||||
} else {
|
||||
return moment.utc(date).format(dateFormatStrings[format]);
|
||||
}
|
||||
}
|
||||
|
||||
function formatBirthday(format, date) {
|
||||
return moment.utc(date).format(birthdayFormatStrings[format]);
|
||||
if (date === null) {
|
||||
return '';
|
||||
} else {
|
||||
return moment.utc(date).format(birthdayFormatStrings[format]);
|
||||
}
|
||||
}
|
||||
|
||||
function getDateFormatString(format) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue