From 94141e048c4b4541e55b635d497b77f19588c0f2 Mon Sep 17 00:00:00 2001 From: mb863 Date: Fri, 21 Jan 2011 03:16:07 +0000 Subject: [PATCH] NIHVIVO-1776: Refactored alert error message when user delete individual's photo. --- webapp/web/js/imageUpload/imageUploadUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/web/js/imageUpload/imageUploadUtils.js b/webapp/web/js/imageUpload/imageUploadUtils.js index 75b307f5a..0364689a1 100644 --- a/webapp/web/js/imageUpload/imageUploadUtils.js +++ b/webapp/web/js/imageUpload/imageUploadUtils.js @@ -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; }); }); \ No newline at end of file