fix: refs #6656 fix ifisemptytext
gitea/worker-time-control/pipeline/head This commit looks good
Details
gitea/worker-time-control/pipeline/head This commit looks good
Details
This commit is contained in:
parent
948be76654
commit
d3f14d8ca3
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue