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) {
|
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(){
|
||||||
|
|
Loading…
Reference in New Issue