Merge pull request '#6656 fix timetable' (#19) from 6656-fixTimeTable into test
gitea/worker-time-control/pipeline/head This commit looks good
Details
gitea/worker-time-control/pipeline/head This commit looks good
Details
Reviewed-on: #19
This commit is contained in:
commit
fb22e4214e
|
@ -210,23 +210,15 @@ function printErrores(errores) {
|
|||
}
|
||||
|
||||
function ifIsEmpty(value) {
|
||||
if (value.trim().length === 0) {
|
||||
return "hide";
|
||||
} else {
|
||||
return "show";
|
||||
}
|
||||
return value.trim() ? "show" : "hide";
|
||||
}
|
||||
|
||||
function ifIsEmptyImage(value) {
|
||||
if (value.trim().length === 0) {
|
||||
return "img/in.svg";
|
||||
} else {
|
||||
return "img/" + value + ".svg";
|
||||
}
|
||||
return value.trim() ? `img/${value}.svg` :"img/in.svg";
|
||||
}
|
||||
|
||||
function ifIsEmptyText(value = 0) {
|
||||
return value;
|
||||
function ifIsEmptyText(value) {
|
||||
return value.toString().trim() ? value : "00:00";
|
||||
}
|
||||
|
||||
function cerrar(){
|
||||
|
|
Loading…
Reference in New Issue