From d357222b2a567eee7a36655001616c99117fbf81 Mon Sep 17 00:00:00 2001 From: mb863 Date: Mon, 17 Jan 2011 15:47:50 +0000 Subject: [PATCH] NIHVIVO-1706: changed jQuery selector for adding alert feedback when deleting individual photos in individual templates. --- webapp/web/js/imageUpload/imageUploadUtils.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webapp/web/js/imageUpload/imageUploadUtils.js b/webapp/web/js/imageUpload/imageUploadUtils.js index 90c7029d5..e3f0a03f5 100644 --- a/webapp/web/js/imageUpload/imageUploadUtils.js +++ b/webapp/web/js/imageUpload/imageUploadUtils.js @@ -3,9 +3,8 @@ $(document).ready(function(){ // Confirmation alert for photo deletion in image upload and individual templates - $('#photoUploadDefaultImage a.thumbnail,#share-contact a:eq(2)').click(function(){ - //$('#share-contact a [title="delete this relationship"]').click(function(){ - var answer = confirm('Are you sure you want to delete your photo?'); - return answer; + $('#photoUploadDefaultImage a.thumbnail,#share-contact a[title="delete this relationship"]').click(function(){ + var answer = confirm('Are you sure you want to delete your photo?'); + return answer; }); }); \ No newline at end of file