#6656 fix timetable #19
|
@ -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";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
jorgep marked this conversation as resolved
|
|||||||
|
|
||||||
function ifIsEmptyText(value) {
|
function ifIsEmptyText(value) {
|
||||||
jorgep marked this conversation as resolved
jsegarra
commented
Se podría usar template string Se podría usar template string
|
|||||||
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
Lo revisamos porque se podría dejar en una línea.
Ya que construyes un string en la 220, puedes aprovechar a darle un valor por defecto a value que sea in