// Used to confirm an image delete in admin.inc.php
var deletePhotoClicked = false;

function deletePhotoWasClicked(){
   deletePhotoClicked = true;
}

function confirmDeletePhoto() {
   if( deletePhotoClicked == true ) {
      return confirm('Voulez-vous vraiment effacer cette photo et toutes les informations qui lui sont associées ?');
   } else {
      return true;
   }
}