File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,17 +102,17 @@ document.addEventListener('DOMContentLoaded', async function () {
102102 function abrirPagDetalle ( ) {
103103 window . open ( '../pages/detalleFiltrados.html' )
104104 }
105-
105+
106+ const botonFiltroMujer = document . getElementById ( 'botonFiltroMujer' ) ;
107+ const botonFiltroHombre = document . getElementById ( 'botonFiltroHombre' ) ;
108+
106109 function accionesProd ( ) {
107110 const genero = this . dataset . genre ;
108111 actualizarProdsFiltYSaveLS ( genero ) ;
109112 console . log ( prodsFiltrados ) ;
110113 setTimeout ( abrirPagDetalle , 1000 ) ;
111114 }
112115
113- const botonFiltroMujer = document . getElementById ( 'botonFiltroMujer' ) ;
114- const botonFiltroHombre = document . getElementById ( 'botonFiltroHombre' ) ;
115-
116116 botonFiltroMujer . addEventListener ( "click" , accionesProd ) ;
117117 botonFiltroHombre . addEventListener ( "click" , accionesProd ) ;
118118
You can’t perform that action at this time.
0 commit comments