correccion errores
This commit is contained in:
+2
-2
@@ -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>';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user