From b34211ce9377857b358a578d941604db31652586 Mon Sep 17 00:00:00 2001 From: Leonardo Espejo <85245534+Leo-Spj@users.noreply.github.com> Date: Thu, 5 Oct 2023 01:42:09 -0500 Subject: [PATCH] =?UTF-8?q?agrego=20sweet=20alert=20al=20a=C3=B1adir=20cur?= =?UTF-8?q?sos=20al=20carrito?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/main.js | 3 +++ php/views/usuario/cursos/cursos.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/js/main.js b/js/main.js index 52104e7..428901c 100644 --- a/js/main.js +++ b/js/main.js @@ -141,6 +141,9 @@ class carritoCompras{ } agregarCurso(objCurso) { + + this.alertaCursoAgregado(); + // si el curso ya está en el carrito, no lo agrego if (this.listaCarrito.find(curso => curso.ID === objCurso.ID)) { console.log('No agregado, ID: ' + objCurso.ID +' ya está en el carrito'); diff --git a/php/views/usuario/cursos/cursos.php b/php/views/usuario/cursos/cursos.php index 5a9434a..45fc5e5 100644 --- a/php/views/usuario/cursos/cursos.php +++ b/php/views/usuario/cursos/cursos.php @@ -214,6 +214,8 @@ + + \ No newline at end of file