NIHVIVO-1776: Refactored alert error message when user delete individual's photo.

This commit is contained in:
mb863 2011-01-21 03:16:07 +00:00
parent f96fbfa3f8
commit 94141e048c

View file

@ -3,8 +3,8 @@
$(document).ready(function(){
// Confirmation alert for photo deletion in image upload and individual templates
$('#photoUploadDefaultImage a.thumbnail').click(function(){
var answer = confirm('Are you sure you want to delete your photo?');
$('#photoUploadDefaultImage a.thumbnail, a.delete-mainImage').click(function(){
var answer = confirm('Are you sure you want to delete this photo?');
return answer;
});
});