From be6e85cf2ef94592017639ea380c85c218e98278 Mon Sep 17 00:00:00 2001 From: mb863 Date: Tue, 13 Jul 2010 18:08:25 +0000 Subject: [PATCH] added comments to javascript --- webapp/web/js/imageUpload/imageUploadUtils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webapp/web/js/imageUpload/imageUploadUtils.js b/webapp/web/js/imageUpload/imageUploadUtils.js index cee6587cd..6907b18d5 100644 --- a/webapp/web/js/imageUpload/imageUploadUtils.js +++ b/webapp/web/js/imageUpload/imageUploadUtils.js @@ -2,13 +2,12 @@ $(document).ready(function(){ + // upload form is hidden by default; use JavaScript to reveal $("#photoUploadContainer").removeClass("hidden"); - + // Confirmation alert for photo deletion $('a.delete').click(function(){ - // var answer = confirm('Are you sure you want to '+ jQuery(this).attr('title') +'?' ); var answer = confirm('Are you sure you want to delete your photo?'); - // jQuery(this).attr('title') gets anchor title attribute return answer; });