#6656 fix timetable #19
|
@ -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";
|
||||
}
|
||||
jorgep marked this conversation as resolved
|
||||
|
||||
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;
|
||||
return value.toString().trim() ? value : "00:00";
|
||||
}
|
||||
|
||||
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