correccion errores

This commit is contained in:
2026-08-12 11:01:47 -05:00
parent 91c9816b56
commit 67b5fa2ce0
+2 -2
View File
@@ -128,7 +128,7 @@ function crearCardPendiente(p) {
['alta', 'media', 'baja'].forEach(function(u) { ['alta', 'media', 'baja'].forEach(function(u) {
const activo = p.urgencia === u ? ' activo' : ''; const activo = p.urgencia === u ? ' activo' : '';
const etiqueta = u.charAt(0).toUpperCase() + u.slice(1); const etiqueta = u.charAt(0).toUpperCase() + u.slice(1);
html += '<button class="quick-btn urgencia-' + u + activo + '" onclick="cambioRapido(' + p.id + ', \'urgencia\', \' + u + '\')">' + etiqueta + '</button>'; html += '<button class="quick-btn urgencia-' + u + activo + '" onclick="cambioRapido(' + p.id + ',\'urgencia\',\'' + u + '\')">' + etiqueta + '</button>';
}); });
html += '</div>'; html += '</div>';
@@ -141,7 +141,7 @@ function crearCardPendiente(p) {
].forEach(function(e) { ].forEach(function(e) {
const activo = p.estado === e.val ? ' activo' : ''; const activo = p.estado === e.val ? ' activo' : '';
const cls = e.val.replace(' ', '_'); const cls = e.val.replace(' ', '_');
html += '<button class="quick-btn estado-' + cls + activo + '" onclick="cambioRapido(' + p.id + ', \'estado\', \' + e.val + '\')">' + e.label + '</button>'; html += '<button class="quick-btn estado-' + cls + activo + '" onclick="cambioRapido(' + p.id + ',\'estado\',\'' + e.val + '\')">' + e.label + '</button>';
}); });
html += '</div>'; html += '</div>';