Merge pull request '#6656 fix timetable' (#19) from 6656-fixTimeTable into test
gitea/worker-time-control/pipeline/head This commit looks good Details

Reviewed-on: #19
This commit is contained in:
Jorge Penadés 2024-01-17 14:01:05 +00:00
commit fb22e4214e
1 changed files with 4 additions and 12 deletions

View File

@ -210,23 +210,15 @@ function printErrores(errores) {
}
function ifIsEmpty(value) {
if (value.trim().length === 0) {
return "hide";
} else {
return "show";
}
return value.trim() ? "show" : "hide";
}
function ifIsEmptyImage(value) {
if (value.trim().length === 0) {
return "img/in.svg";
} else {
return "img/" + value + ".svg";
}
return value.trim() ? `img/${value}.svg` :"img/in.svg";
}
function ifIsEmptyText(value = 0) {
return value;
function ifIsEmptyText(value) {
return value.toString().trim() ? value : "00:00";
}
function cerrar(){