Skip to content

Commit

Permalink
Funcionalidad para refrescar cargue de imágen
Browse files Browse the repository at this point in the history
  • Loading branch information
Wlogzz committed Mar 12, 2023
1 parent 0c7f238 commit c9a2d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/peliculas/editaModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
<div class="row justify-content-center">
<div class="col-auto">
<img src="" alt="" id="img_poster" name="img_poster" width="200">
<img src="" alt="" id="img_poster" name="img_poster" width="300">
</div>
</div>
<div class="mb-3">
Expand Down
4 changes: 2 additions & 2 deletions app/peliculas/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<td><?= $row_pelicula['descripcion']; ?></td>
<td><?= $row_pelicula['genero']; ?></td>
<td>
<img src="<?= $dir .$row_pelicula['id'].'.jpg'; ?>" alt="<?= $row_pelicula['nombre'];?>" width="80">
<img src="<?= $dir .$row_pelicula['id'].'.jpg?=n' . time(); ?>" alt="<?= $row_pelicula['nombre'];?>" width="80">
</td>
<td><?= $row_pelicula['fecha_alta']; ?></td>
<td class="text-center">
Expand Down Expand Up @@ -117,7 +117,7 @@
inputNombre.value = data.nombre
inputDescripcion.value = data.descripcion
inputGenero.value = data.id_genero
poster.src = '<?= $dir ?>' + data.id + '.jpg';
poster.src = '<?= $dir ?>' + data.id + '<?='.jpg?=n' . time()?>';
}).catch(err => console.log(err))
})

Expand Down

0 comments on commit c9a2d2f

Please sign in to comment.