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) {
if (!value.trim()) return "hide";
return "show";
return value.trim() ? "show" : "hide";
}
function ifIsEmptyImage(value) {
if (!value.trim()) return "img/in.svg";
return "img/" + value + ".svg";
return value.trim() ? `img/${value}.svg` :"img/in.svg";
}
function ifIsEmptyText(value) {
if (!value.toString().trim()) return "00:00";
return value;
return value.toString().trim() ? value : "00:00";
}
function cerrar(){