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
21720b7b27
commit
948be76654
|
@ -210,22 +210,19 @@ function printErrores(errores) {
|
|||
}
|
||||
|
||||
function ifIsEmpty(value) {
|
||||
if (value.trim().length === 0) {
|
||||
return "hide";
|
||||
} else {
|
||||
if (!value.trim()) return "hide";
|
||||
return "show";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function ifIsEmptyImage(value) {
|
||||
if (value.trim().length === 0) {
|
||||
return "img/in.svg";
|
||||
} else {
|
||||
if (!value.trim()) return "img/in.svg";
|
||||
return "img/" + value + ".svg";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function ifIsEmptyText(value = 0) {
|
||||
function ifIsEmptyText(value) {
|
||||
if (!value.toString().trim()) return "00:00";
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue