fixed modal
This commit is contained in:
parent
4683c4f40c
commit
978b38c669
@ -1175,16 +1175,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
$("#photoModal").css("display", "flex");
|
||||
});
|
||||
|
||||
$("#photoModalCloseX, #photoCancel").on("click", function() {
|
||||
// Chiudi con X o bottone "Chiudi"
|
||||
$(document).on("click", "#photoModalCloseX, #photoCancel", function() {
|
||||
$("#photoModal").hide();
|
||||
});
|
||||
|
||||
$("#photoModal").on("click", function(e) {
|
||||
// Chiudi cliccando sul backdrop scuro
|
||||
$(document).on("click", "#photoModal", function(e) {
|
||||
if (e.target.id === "photoModal") {
|
||||
$("#photoModal").hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Clic su miniatura → apri preview
|
||||
$(document).on("click", ".photo-thumb", function() {
|
||||
const src = $(this).data("full");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user