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:
Tomas Bures 2018-12-28 20:54:00 +01:00
parent 64af46b685
commit 2e847460f4
10 changed files with 117 additions and 26 deletions

View file

@ -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) {