fix: refs #6656 fix ifisemptytext
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
jorgep 2024-01-15 13:20:42 +01:00
parent 948be76654
commit d3f14d8ca3
1 changed files with 3 additions and 8 deletions

View File

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