Skip to content

Commit bb71d56

Browse files
fix(frontend): 🐛 Added messages with alerts instead of consoles.log
1 parent 5541041 commit bb71d56

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

public/js/admin/calmanager.js

+4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ document.addEventListener("DOMContentLoaded", function () {
4141
.then((response) => response.json())
4242
.then((data) => {
4343
console.log("Evento añadido exitosamente:", data);
44+
alert("Evento añadido exitosamente");
4445
// Puedes actualizar la lista de eventos si es necesario
4546
})
4647
.catch((error) => {
4748
console.error("Error al añadir el evento:", error);
49+
alert("Error al añadir el evento");
4850
});
4951
});
5052

@@ -62,10 +64,12 @@ document.addEventListener("DOMContentLoaded", function () {
6264
.then((response) => response.json())
6365
.then((data) => {
6466
console.log("Evento eliminado exitosamente:", data);
67+
alert("Evento eliminado exitosamente");
6568
// Puedes actualizar la lista de eventos si es necesario
6669
})
6770
.catch((error) => {
6871
console.error("Error al eliminar el evento:", error);
72+
alert("Error al eliminar el evento");
6973
});
7074
});
7175

public/js/admin/links.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ document.addEventListener("DOMContentLoaded", function () {
9393
.then((data) => {
9494
console.log("Enlace eliminado exitosamente:", data.message);
9595
alert(data.message);
96-
document.getElementById("deleteLinkForm").reset(); // Limpia el formulario
96+
document.getElementById("deleteLinkForm").reset();
9797
})
9898
.catch((error) => {
9999
console.error("Error al eliminar el enlace:", error);

public/js/minified/admin/calmanager.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)