NIHVIVO-1706: changed jQuery selector for adding alert feedback when deleting individual photos in individual templates.

This commit is contained in:
mb863 2011-01-17 15:47:50 +00:00
parent a7ef580161
commit d357222b2a

View file

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